24 instantiations of StaticTextPointer
PresentationFramework (24)
System\Windows\Controls\PasswordTextContainer.cs (3)
233return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 263return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 268return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Controls\PasswordTextNavigator.cs (1)
324return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
129return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 159return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 164return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
186return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\FixedTextContainer.cs (3)
114return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 144return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 149return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\FixedTextPointer.cs (1)
254return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\NullTextContainer.cs (3)
102return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 132return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 137return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\NullTextNavigator.cs (1)
174return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\StaticTextPointer.cs (1)
202internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
System\Windows\Documents\TextContainer.cs (2)
497return new StaticTextPointer(this, node, nodeOffset); 663nextContextPosition = new StaticTextPointer(this, node, node.GetOffsetFromEdge(edge));
System\Windows\Documents\TextElement.cs (4)
342return new StaticTextPointer(tree, _textElementNode, 0); 375return new StaticTextPointer(tree, _textElementNode, 1); 408return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount - 1); 449return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount);
System\Windows\Documents\TextPointer.cs (1)
2572return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.Edge));
239 references to StaticTextPointer
PresentationFramework (239)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
244internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 271internal override bool IsContentHighlighted(StaticTextPointer staticTextPosition, LogicalDirection direction) 278internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 291return dynamicPosition == null ? StaticTextPointer.Null : dynamicPosition.CreateStaticPointer(); 459private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 483private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
MS\Internal\Documents\TextBoxLine.cs (3)
79StaticTextPointer position = _owner.Host.TextContainer.CreateStaticPointerAtOffset(dcp); 426private TextRun HandleText(StaticTextPointer position) 431StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
MS\Internal\Documents\TextContainerHelper.cs (1)
595internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
MS\Internal\PtsHost\Line.cs (2)
156StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 220StaticTextPointer pointer = position.CreateStaticPointer();
MS\Internal\PtsHost\LineBase.cs (5)
87protected TextRun HandleText(StaticTextPointer position) 90StaticTextPointer endOfRunPosition; 139protected TextRun HandleElementStartEdge(StaticTextPointer position) 254protected TextRun HandleElementEndEdge(StaticTextPointer position) 308protected TextRun HandleEmbeddedObject(int dcp, StaticTextPointer position)
MS\Internal\PtsHost\ListParaClient.cs (1)
66TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
MS\Internal\PtsHost\OptimalTextSource.cs (2)
104StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 170StaticTextPointer pointer = position.CreateStaticPointer();
MS\Internal\PtsHost\TextParaClient.cs (1)
1096StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (2)
1219StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1522TextProperties defaultTextProperties = new TextProperties(Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
MS\Internal\Text\ComplexLine.cs (7)
45StaticTextPointer position = _owner.TextContainer.CreateStaticPointerAtOffset(dcp); 108StaticTextPointer pointer = position.CreateStaticPointer(); 334private TextRun HandleText(StaticTextPointer position) 337StaticTextPointer endOfRunPosition; 384private TextRun HandleElementStartEdge(StaticTextPointer position) 475private TextRun HandleElementEndEdge(StaticTextPointer position) 525private TextRun HandleInlineObject(StaticTextPointer position, int dcp)
MS\Internal\Text\DynamicPropertyReader.cs (1)
253internal static Brush GetBackgroundBrushForInlineObject(StaticTextPointer position)
MS\Internal\Text\TextProperties.cs (2)
128internal TextProperties(DependencyObject target, StaticTextPointer position, bool inlineObjects, bool getBackground, double pixelsPerDip) 223private static TextDecorationCollection GetHighlightTextDecorations(StaticTextPointer highlightPosition)
System\Windows\Controls\PasswordTextContainer.cs (16)
226ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 231StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 236TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 241int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 246int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 251object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 256DependencyObject ITextContainer.GetParent(StaticTextPointer position) 261StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 266StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 271int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 276int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 281object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Controls\PasswordTextNavigator.cs (2)
105int ITextPointer.CompareTo(StaticTextPointer position) 322StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\DocumentSequenceHighlightLayer.cs (4)
53internal override object GetHighlightValue(StaticTextPointer staticTextPointer, LogicalDirection direction) 61internal override bool IsContentHighlighted(StaticTextPointer staticTextPointer, LogicalDirection direction) 68internal override StaticTextPointer GetNextChangePosition(StaticTextPointer staticTextPointer, LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextContainer.cs (40)
122ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 127StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 132TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 137int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 142int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 147object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 152DependencyObject ITextContainer.GetParent(StaticTextPointer position) 157StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 162StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 167int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 172int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 177object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty) 668StaticTextPointer highlightTransitionPosition; 669StaticTextPointer highlightRangeStart; 880internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 882StaticTextPointer parentPosition; 901internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 903StaticTextPointer parentPosition; 923internal override StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 925StaticTextPointer parentPosition; 926StaticTextPointer returnPointer = StaticTextPointer.Null; 966internal override StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 968StaticTextPointer parentPosition; 969StaticTextPointer returnPointer = StaticTextPointer.Null; 991private bool EnsureParentPosition(StaticTextPointer textPosition, LogicalDirection direction, out StaticTextPointer parentPosition) 1023private StaticTextPointer GetStaticPositionInChildContainer(StaticTextPointer textPosition, LogicalDirection direction, StaticTextPointer originalPosition) 1025StaticTextPointer parentTextPointer = StaticTextPointer.Null; 1049parentTextPointer = StaticTextPointer.Null;
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
70/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 72int ITextPointer.CompareTo(StaticTextPointer position) 184StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\FixedDocument.cs (2)
1062StaticTextPointer highlightTransitionPosition; 1063StaticTextPointer highlightRangeStart;
System\Windows\Documents\FixedTextContainer.cs (16)
107ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 112StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 117TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 122int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 127int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 132object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 137DependencyObject ITextContainer.GetParent(StaticTextPointer position) 142StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 147StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 152int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 157int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 162object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\FixedTextPointer.cs (2)
72int ITextPointer.CompareTo(StaticTextPointer position) 252StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\HighlightLayer.cs (4)
42internal abstract object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction); 53internal abstract bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction); 65internal abstract StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction);
System\Windows\Documents\Highlights.cs (16)
61internal virtual object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 94internal virtual bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 119internal virtual StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 121StaticTextPointer changePosition; 122StaticTextPointer closestChangePosition; 125closestChangePosition = StaticTextPointer.Null; 140closestChangePosition = StaticTextPointer.Min(closestChangePosition, changePosition); 144closestChangePosition = StaticTextPointer.Max(closestChangePosition, changePosition); 176internal virtual StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 178StaticTextPointer changePosition; 179StaticTextPointer characterRunEndPosition; 184changePosition = StaticTextPointer.Null; 339StaticTextPointer highlightTransitionPosition; 340StaticTextPointer highlightRangeStart;
System\Windows\Documents\ITextContainer.cs (16)
45ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 47StaticTextPointer CreateStaticPointerAtOffset(int offset); 49TextPointerContext GetPointerContext(StaticTextPointer pointer, LogicalDirection direction); 51int GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2); 53int GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count); 55object GetAdjacentElement(StaticTextPointer position, LogicalDirection direction); 57DependencyObject GetParent(StaticTextPointer position); 59StaticTextPointer CreatePointer(StaticTextPointer position, int offset); 61StaticTextPointer GetNextContextPosition(StaticTextPointer position, LogicalDirection direction); 63int CompareTo(StaticTextPointer position1, StaticTextPointer position2); 65int CompareTo(StaticTextPointer position1, ITextPointer position2); 67object GetValue(StaticTextPointer position, DependencyProperty formattingProperty);
System\Windows\Documents\ITextPointer.cs (2)
29StaticTextPointer CreateStaticPointer(); 48int CompareTo(StaticTextPointer position);
System\Windows\Documents\NullTextContainer.cs (16)
95ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 100StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 105TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 110int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 115int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 120object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 125DependencyObject ITextContainer.GetParent(StaticTextPointer position) 130StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 135StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 140int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 145int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 150object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\NullTextNavigator.cs (2)
55int ITextPointer.CompareTo(StaticTextPointer position) 172StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\Speller.cs (3)
150StaticTextPointer endPosition; 233StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 1325StaticTextPointer nextErrorTransition;
System\Windows\Documents\SpellerHighlightLayer.cs (4)
55internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 72internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 79internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction)
System\Windows\Documents\SpellerStatusTable.cs (13)
165internal bool IsRunType(StaticTextPointer textPosition, LogicalDirection direction, RunType runType) 180internal StaticTextPointer GetNextErrorTransition(StaticTextPointer textPosition, LogicalDirection direction) 182StaticTextPointer transitionPosition; 186transitionPosition = StaticTextPointer.Null; 245internal bool GetError(StaticTextPointer textPosition, LogicalDirection direction, 265internal bool GetRun(StaticTextPointer position, LogicalDirection direction, out RunType runType, out StaticTextPointer end) 270end = StaticTextPointer.Null; 310private int GetErrorIndex(StaticTextPointer textPosition, LogicalDirection direction) 333private int FindIndex(StaticTextPointer position, LogicalDirection direction) 757private StaticTextPointer GetRunEndPosition(int index) 759StaticTextPointer position;
System\Windows\Documents\StaticTextPointer.cs (11)
63internal int GetOffsetToPosition(StaticTextPointer position) 84internal StaticTextPointer CreatePointer(int offset) 91internal StaticTextPointer GetNextContextPosition(LogicalDirection direction) 98internal int CompareTo(StaticTextPointer position) 119internal static StaticTextPointer Min(StaticTextPointer position1, StaticTextPointer position2) 126internal static StaticTextPointer Max(StaticTextPointer position1, StaticTextPointer position2) 202internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
System\Windows\Documents\TextContainer.cs (21)
478ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 483internal StaticTextPointer CreateStaticPointerAtOffset(int offset) 500StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 505TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 532internal int GetInternalOffset(StaticTextPointer position) 550int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 555int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 571object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 589private TextTreeNode GetScopingNode(StaticTextPointer position) 607DependencyObject ITextContainer.GetParent(StaticTextPointer position) 612StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 618StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 623StaticTextPointer nextContextPosition; 667nextContextPosition = StaticTextPointer.Null; 673int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 698int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 723object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\TextElement.cs (4)
336internal StaticTextPointer StaticElementStart 369internal StaticTextPointer StaticContentStart 402internal StaticTextPointer StaticContentEnd 443internal StaticTextPointer StaticElementEnd
System\Windows\Documents\TextPointer.cs (2)
2358int ITextPointer.CompareTo(StaticTextPointer position) 2567StaticTextPointer ITextPointer.CreateStaticPointer()
System\windows\Documents\TextSelectionHighlightLayer.cs (6)
57internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 74internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 103internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 105StaticTextPointer transitionPosition; 107transitionPosition = StaticTextPointer.Null;