24 instantiations of StaticTextPointer
PresentationFramework (24)
System\Windows\Controls\PasswordTextContainer.cs (3)
229return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 259return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 264return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Controls\PasswordTextNavigator.cs (1)
319return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
112return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 142return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 147return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
177return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\FixedTextContainer.cs (3)
97return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 127return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 132return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\FixedTextPointer.cs (1)
246return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\NullTextContainer.cs (3)
97return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 127return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 132return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\NullTextNavigator.cs (1)
168return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\StaticTextPointer.cs (1)
197internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
System\Windows\Documents\TextContainer.cs (2)
491return new StaticTextPointer(this, node, nodeOffset); 657nextContextPosition = new StaticTextPointer(this, node, node.GetOffsetFromEdge(edge));
System\Windows\Documents\TextElement.cs (4)
326return new StaticTextPointer(tree, _textElementNode, 0); 359return new StaticTextPointer(tree, _textElementNode, 1); 392return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount - 1); 433return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount);
System\Windows\Documents\TextPointer.cs (1)
2566return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.Edge));
239 references to StaticTextPointer
PresentationFramework (239)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
236internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 263internal override bool IsContentHighlighted(StaticTextPointer staticTextPosition, LogicalDirection direction) 270internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 283return dynamicPosition == null ? StaticTextPointer.Null : dynamicPosition.CreateStaticPointer(); 451private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 475private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
MS\Internal\Documents\TextBoxLine.cs (3)
71StaticTextPointer position = _owner.Host.TextContainer.CreateStaticPointerAtOffset(dcp); 418private TextRun HandleText(StaticTextPointer position) 423StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
MS\Internal\Documents\TextContainerHelper.cs (1)
591internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
MS\Internal\PtsHost\Line.cs (2)
138StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 202StaticTextPointer pointer = position.CreateStaticPointer();
MS\Internal\PtsHost\LineBase.cs (5)
76protected TextRun HandleText(StaticTextPointer position) 79StaticTextPointer endOfRunPosition; 128protected TextRun HandleElementStartEdge(StaticTextPointer position) 243protected TextRun HandleElementEndEdge(StaticTextPointer position) 297protected TextRun HandleEmbeddedObject(int dcp, StaticTextPointer position)
MS\Internal\PtsHost\ListParaClient.cs (1)
61TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
MS\Internal\PtsHost\OptimalTextSource.cs (2)
88StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 154StaticTextPointer pointer = position.CreateStaticPointer();
MS\Internal\PtsHost\TextParaClient.cs (1)
1089StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (2)
1189StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1492TextProperties defaultTextProperties = new TextProperties(Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
MS\Internal\Text\ComplexLine.cs (7)
39StaticTextPointer position = _owner.TextContainer.CreateStaticPointerAtOffset(dcp); 102StaticTextPointer pointer = position.CreateStaticPointer(); 328private TextRun HandleText(StaticTextPointer position) 331StaticTextPointer endOfRunPosition; 378private TextRun HandleElementStartEdge(StaticTextPointer position) 469private TextRun HandleElementEndEdge(StaticTextPointer position) 519private TextRun HandleInlineObject(StaticTextPointer position, int dcp)
MS\Internal\Text\DynamicPropertyReader.cs (1)
246internal static Brush GetBackgroundBrushForInlineObject(StaticTextPointer position)
MS\Internal\Text\TextProperties.cs (2)
125internal TextProperties(DependencyObject target, StaticTextPointer position, bool inlineObjects, bool getBackground, double pixelsPerDip) 220private static TextDecorationCollection GetHighlightTextDecorations(StaticTextPointer highlightPosition)
System\Windows\Controls\PasswordTextContainer.cs (16)
222ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 227StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 232TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 237int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 242int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 247object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 252DependencyObject ITextContainer.GetParent(StaticTextPointer position) 257StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 262StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 267int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 272int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 277object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Controls\PasswordTextNavigator.cs (2)
100int ITextPointer.CompareTo(StaticTextPointer position) 317StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\DocumentSequenceHighlightLayer.cs (4)
49internal override object GetHighlightValue(StaticTextPointer staticTextPointer, LogicalDirection direction) 57internal override bool IsContentHighlighted(StaticTextPointer staticTextPointer, LogicalDirection direction) 64internal override StaticTextPointer GetNextChangePosition(StaticTextPointer staticTextPointer, LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextContainer.cs (40)
105ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 110StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 115TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 120int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 125int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 130object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 135DependencyObject ITextContainer.GetParent(StaticTextPointer position) 140StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 145StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 150int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 155int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 160object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty) 650StaticTextPointer highlightTransitionPosition; 651StaticTextPointer highlightRangeStart; 862internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 864StaticTextPointer parentPosition; 883internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 885StaticTextPointer parentPosition; 905internal override StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 907StaticTextPointer parentPosition; 908StaticTextPointer returnPointer = StaticTextPointer.Null; 948internal override StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 950StaticTextPointer parentPosition; 951StaticTextPointer returnPointer = StaticTextPointer.Null; 973private bool EnsureParentPosition(StaticTextPointer textPosition, LogicalDirection direction, out StaticTextPointer parentPosition) 1005private StaticTextPointer GetStaticPositionInChildContainer(StaticTextPointer textPosition, LogicalDirection direction, StaticTextPointer originalPosition) 1007StaticTextPointer parentTextPointer = StaticTextPointer.Null; 1031parentTextPointer = StaticTextPointer.Null;
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
61/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 63int ITextPointer.CompareTo(StaticTextPointer position) 175StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\FixedDocument.cs (2)
1052StaticTextPointer highlightTransitionPosition; 1053StaticTextPointer highlightRangeStart;
System\Windows\Documents\FixedTextContainer.cs (16)
90ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 95StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 100TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 105int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 110int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 115object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 120DependencyObject ITextContainer.GetParent(StaticTextPointer position) 125StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 130StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 135int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 140int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 145object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\FixedTextPointer.cs (2)
64int ITextPointer.CompareTo(StaticTextPointer position) 244StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\HighlightLayer.cs (4)
39internal abstract object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction); 50internal abstract bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction); 62internal abstract StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction);
System\Windows\Documents\Highlights.cs (16)
59internal virtual object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 92internal virtual bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 117internal virtual StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 119StaticTextPointer changePosition; 120StaticTextPointer closestChangePosition; 123closestChangePosition = StaticTextPointer.Null; 138closestChangePosition = StaticTextPointer.Min(closestChangePosition, changePosition); 142closestChangePosition = StaticTextPointer.Max(closestChangePosition, changePosition); 174internal virtual StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 176StaticTextPointer changePosition; 177StaticTextPointer characterRunEndPosition; 182changePosition = StaticTextPointer.Null; 337StaticTextPointer highlightTransitionPosition; 338StaticTextPointer highlightRangeStart;
System\Windows\Documents\ITextContainer.cs (16)
43ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 45StaticTextPointer CreateStaticPointerAtOffset(int offset); 47TextPointerContext GetPointerContext(StaticTextPointer pointer, LogicalDirection direction); 49int GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2); 51int GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count); 53object GetAdjacentElement(StaticTextPointer position, LogicalDirection direction); 55DependencyObject GetParent(StaticTextPointer position); 57StaticTextPointer CreatePointer(StaticTextPointer position, int offset); 59StaticTextPointer GetNextContextPosition(StaticTextPointer position, LogicalDirection direction); 61int CompareTo(StaticTextPointer position1, StaticTextPointer position2); 63int CompareTo(StaticTextPointer position1, ITextPointer position2); 65object GetValue(StaticTextPointer position, DependencyProperty formattingProperty);
System\Windows\Documents\ITextPointer.cs (2)
26StaticTextPointer CreateStaticPointer(); 45int CompareTo(StaticTextPointer position);
System\Windows\Documents\NullTextContainer.cs (16)
90ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 95StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 100TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 105int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 110int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 115object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 120DependencyObject ITextContainer.GetParent(StaticTextPointer position) 125StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 130StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 135int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 140int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 145object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\NullTextNavigator.cs (2)
49int ITextPointer.CompareTo(StaticTextPointer position) 166StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\Speller.cs (3)
145StaticTextPointer endPosition; 228StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 1317StaticTextPointer nextErrorTransition;
System\Windows\Documents\SpellerHighlightLayer.cs (4)
51internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 68internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 75internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction)
System\Windows\Documents\SpellerStatusTable.cs (13)
162internal bool IsRunType(StaticTextPointer textPosition, LogicalDirection direction, RunType runType) 177internal StaticTextPointer GetNextErrorTransition(StaticTextPointer textPosition, LogicalDirection direction) 179StaticTextPointer transitionPosition; 183transitionPosition = StaticTextPointer.Null; 242internal bool GetError(StaticTextPointer textPosition, LogicalDirection direction, 262internal bool GetRun(StaticTextPointer position, LogicalDirection direction, out RunType runType, out StaticTextPointer end) 267end = StaticTextPointer.Null; 307private int GetErrorIndex(StaticTextPointer textPosition, LogicalDirection direction) 330private int FindIndex(StaticTextPointer position, LogicalDirection direction) 754private StaticTextPointer GetRunEndPosition(int index) 756StaticTextPointer position;
System\Windows\Documents\StaticTextPointer.cs (11)
58internal int GetOffsetToPosition(StaticTextPointer position) 79internal StaticTextPointer CreatePointer(int offset) 86internal StaticTextPointer GetNextContextPosition(LogicalDirection direction) 93internal int CompareTo(StaticTextPointer position) 114internal static StaticTextPointer Min(StaticTextPointer position1, StaticTextPointer position2) 121internal static StaticTextPointer Max(StaticTextPointer position1, StaticTextPointer position2) 197internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
System\Windows\Documents\TextContainer.cs (21)
472ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 477internal StaticTextPointer CreateStaticPointerAtOffset(int offset) 494StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 499TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 526internal int GetInternalOffset(StaticTextPointer position) 544int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 549int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 565object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 583private TextTreeNode GetScopingNode(StaticTextPointer position) 601DependencyObject ITextContainer.GetParent(StaticTextPointer position) 606StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 612StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 617StaticTextPointer nextContextPosition; 661nextContextPosition = StaticTextPointer.Null; 667int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 692int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 717object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\TextElement.cs (4)
320internal StaticTextPointer StaticElementStart 353internal StaticTextPointer StaticContentStart 386internal StaticTextPointer StaticContentEnd 427internal StaticTextPointer StaticElementEnd
System\Windows\Documents\TextPointer.cs (2)
2352int ITextPointer.CompareTo(StaticTextPointer position) 2561StaticTextPointer ITextPointer.CreateStaticPointer()
System\windows\Documents\TextSelectionHighlightLayer.cs (6)
54internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 71internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 100internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 102StaticTextPointer transitionPosition; 104transitionPosition = StaticTextPointer.Null;