2 instantiations of CaretElement
PresentationFramework (2)
System\windows\Documents\TextEditorDragDrop.cs (1)
284_caretDragDrop = new CaretElement(_textEditor, /*isBlinkEnabled:*/false);
System\windows\Documents\TextSelection.cs (1)
2422_caretElement = new CaretElement(_textEditor, isBlinkEnabled)
56 references to CaretElement
PresentationFramework (56)
MS\Internal\Documents\DocumentPageTextView.cs (1)
159CaretElement.AddTransformToGeometry(geometry, transform);
MS\Internal\Documents\MultiPageTextView.cs (2)
173CaretElement.AddTransformToGeometry(pageGeometry, transform); 175CaretElement.AddGeometry(ref geometry, pageGeometry);
MS\Internal\Documents\TextBoxView.cs (11)
37MarginProperty.OverrideMetadata(typeof(TextBoxView), new FrameworkPropertyMetadata(new Thickness(CaretElement.BidiCaretIndicatorWidth, 0, CaretElement.BidiCaretIndicatorWidth, 0))); 692double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 750CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect)); 1873double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 2063CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect)); 2097CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect)); 2111CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect)); 2159CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect)); 2176CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect)); 2190CaretElement.AddGeometry(ref geometry, new RectangleGeometry(rect));
MS\Internal\Documents\TextDocumentView.cs (6)
132CaretElement.AddGeometry(ref geometry, floatingElementGeometry); 183CaretElement.AddGeometry(ref geometry, columnGeometry); 1314CaretElement.AddGeometry(ref geometry, paragraphGeometry); 1405CaretElement.AddGeometry(ref geometry, paragraphGeometry); 3372CaretElement.AddTransformToGeometry(geometry, transform); 3426CaretElement.AddTransformToGeometry(geometry, translateTransform);
MS\Internal\PtsHost\CellParaClient.cs (2)
339CaretElement.ClipGeometryByViewport(ref geometry, viewport); 342CaretElement.AddTransformToGeometry(geometry, transform);
MS\Internal\PtsHost\FigureParaClient.cs (1)
751CaretElement.ClipGeometryByViewport(ref geometry, viewport);
MS\Internal\PtsHost\FloaterParaClient.cs (1)
760CaretElement.ClipGeometryByViewport(ref geometry, viewport);
MS\Internal\PtsHost\TableParaClient.cs (1)
868CaretElement.AddGeometry(ref geometry, cellGeometry);
MS\Internal\PtsHost\TextParaClient.cs (7)
802CaretElement.AddTransformToGeometry(geometry, transform); 809CaretElement.AddGeometry(ref geometry, floatAndFigGeometry); 1883endOfParaGlyphWidth = ((double)TextParagraph.Element.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier); 1906CaretElement.AddGeometry(ref geometry, rectGeometry); 1993endOfParaGlyphWidth = ((double)TextParagraph.Element.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier); 2018CaretElement.AddGeometry(ref geometry, rectGeometry); 2352CaretElement.AddGeometry(ref geometry, objectGeometry);
System\Windows\Controls\FlowDocumentReader.cs (1)
1839CaretElement caretElement = reader.Selection.CaretElement;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1773CaretElement caretElement = viewer.Selection.CaretElement;
System\Windows\Controls\PasswordBox.cs (1)
1209CaretElement caretElement = passwordBox.Selection.CaretElement;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2189CaretElement caretElement = textBoxBase.TextSelectionInternal.CaretElement;
System\Windows\Controls\RichTextBox.cs (2)
324renderScope.Document.PagePadding = new Thickness(CaretElement.CaretPaddingWidth, 0, CaretElement.CaretPaddingWidth, 0);
System\Windows\Controls\SinglePageViewer.cs (1)
1461CaretElement caretElement = viewer.Selection.CaretElement;
System\Windows\Controls\TextBlock.cs (2)
2339double endOfParaGlyphWidth = FontSize * CaretElement.c_endOfParaMagicMultiplier; 2344CaretElement.AddGeometry(ref geometry, rectGeometry);
System\windows\Documents\CaretElement.cs (4)
487geometry = Geometry.Combine(geometry, addedGeometry, GeometryCombineMode.Union, null, CaretElement.c_geometryCombineTolerance, ToleranceType.Absolute); 497geometry = Geometry.Combine(geometry, viewportGeometry, GeometryCombineMode.Intersect, null, CaretElement.c_geometryCombineTolerance, ToleranceType.Absolute); 768private static CaretElement Debug_CaretElement 1213((CaretElement)_parent).OnRenderCaretSubElement(drawingContext);
System\Windows\Documents\ITextSelection.cs (1)
175CaretElement CaretElement { get; }
System\windows\Documents\TextEditorDragDrop.cs (1)
689private CaretElement _caretDragDrop;
System\windows\Documents\TextEditorMouse.cs (1)
762CaretElement caretElement = textEditor.Selection.CaretElement;
System\windows\Documents\TextEditorSelection.cs (1)
2242double breakWidth = (double)innerMovingPosition.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier;
System\windows\Documents\TextSelection.cs (7)
326FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 745CaretElement caretElement = _caretElement; 1731internal CaretElement CaretElement 1740CaretElement ITextSelection.CaretElement 2084CaretElement caretElement = _caretElement; 2415private CaretElement EnsureCaret(bool isBlinkEnabled, bool isSelectionActive, CaretScrollMethod scrollMethod) 2794private CaretElement _caretElement;