24 instantiations of StaticTextPointer
PresentationFramework (24)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (3)
239return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 269return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 274return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
326return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
133return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 163return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 168return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
190return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
src\Framework\System\Windows\Documents\FixedTextContainer.cs (3)
118return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 148return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 153return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
269return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
src\Framework\System\Windows\Documents\NullTextContainer.cs (3)
105return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 135return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 140return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
176return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
src\Framework\System\Windows\Documents\StaticTextPointer.cs (1)
204internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
src\Framework\System\Windows\Documents\TextContainer.cs (2)
512return new StaticTextPointer(this, node, nodeOffset); 678nextContextPosition = new StaticTextPointer(this, node, node.GetOffsetFromEdge(edge));
src\Framework\System\Windows\Documents\TextElement.cs (4)
347return new StaticTextPointer(tree, _textElementNode, 0); 380return new StaticTextPointer(tree, _textElementNode, 1); 413return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount - 1); 454return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount);
src\Framework\System\Windows\Documents\TextPointer.cs (1)
2598return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.Edge));
237 references to StaticTextPointer
PresentationFramework (237)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
251internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 279internal override bool IsContentHighlighted(StaticTextPointer staticTextPosition, LogicalDirection direction) 286internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 299return dynamicPosition == null ? StaticTextPointer.Null : dynamicPosition.CreateStaticPointer(); 470private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 495private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (3)
81StaticTextPointer position = _owner.Host.TextContainer.CreateStaticPointerAtOffset(dcp); 428private TextRun HandleText(StaticTextPointer position) 433StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
600internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
src\Framework\MS\Internal\PtsHost\Line.cs (2)
159StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 223StaticTextPointer pointer = position.CreateStaticPointer();
src\Framework\MS\Internal\PtsHost\LineBase.cs (5)
90protected TextRun HandleText(StaticTextPointer position) 93StaticTextPointer endOfRunPosition; 143protected TextRun HandleElementStartEdge(StaticTextPointer position) 259protected TextRun HandleElementEndEdge(StaticTextPointer position) 313protected TextRun HandleEmbeddedObject(int dcp, StaticTextPointer position)
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (1)
76TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (2)
108StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 174StaticTextPointer pointer = position.CreateStaticPointer();
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (1)
1244StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (2)
1227StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1530TextProperties defaultTextProperties = new TextProperties(Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
src\Framework\MS\Internal\Text\ComplexLine.cs (7)
48StaticTextPointer position = _owner.TextContainer.CreateStaticPointerAtOffset(dcp); 111StaticTextPointer pointer = position.CreateStaticPointer(); 338private TextRun HandleText(StaticTextPointer position) 341StaticTextPointer endOfRunPosition; 389private TextRun HandleElementStartEdge(StaticTextPointer position) 481private TextRun HandleElementEndEdge(StaticTextPointer position) 531private TextRun HandleInlineObject(StaticTextPointer position, int dcp)
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
256internal static Brush GetBackgroundBrushForInlineObject(StaticTextPointer position)
src\Framework\MS\Internal\Text\TextProperties.cs (2)
131internal TextProperties(DependencyObject target, StaticTextPointer position, bool inlineObjects, bool getBackground, double pixelsPerDip) 226private static TextDecorationCollection GetHighlightTextDecorations(StaticTextPointer highlightPosition)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (16)
232ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 237StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 242TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 247int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 252int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 257object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 262DependencyObject ITextContainer.GetParent(StaticTextPointer position) 267StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 272StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 277int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 282int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 287object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (2)
107int ITextPointer.CompareTo(StaticTextPointer position) 324StaticTextPointer ITextPointer.CreateStaticPointer()
src\Framework\System\Windows\Documents\DocumentSequenceHighlightLayer.cs (4)
57internal override object GetHighlightValue(StaticTextPointer staticTextPointer, LogicalDirection direction) 65internal override bool IsContentHighlighted(StaticTextPointer staticTextPointer, LogicalDirection direction) 72internal override StaticTextPointer GetNextChangePosition(StaticTextPointer staticTextPointer, LogicalDirection direction)
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (38)
126ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 131StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 136TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 141int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 146int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 151object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 156DependencyObject ITextContainer.GetParent(StaticTextPointer position) 161StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 166StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 171int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 176int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 181object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty) 888internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 890StaticTextPointer parentPosition; 909internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 911StaticTextPointer parentPosition; 931internal override StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 933StaticTextPointer parentPosition; 934StaticTextPointer returnPointer = StaticTextPointer.Null; 974internal override StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 976StaticTextPointer parentPosition; 977StaticTextPointer returnPointer = StaticTextPointer.Null; 999private bool EnsureParentPosition(StaticTextPointer textPosition, LogicalDirection direction, out StaticTextPointer parentPosition) 1031private StaticTextPointer GetStaticPositionInChildContainer(StaticTextPointer textPosition, LogicalDirection direction, StaticTextPointer originalPosition) 1033StaticTextPointer parentTextPointer = StaticTextPointer.Null; 1057parentTextPointer = StaticTextPointer.Null;
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
74/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 76int ITextPointer.CompareTo(StaticTextPointer position) 188StaticTextPointer ITextPointer.CreateStaticPointer()
src\Framework\System\Windows\Documents\FixedDocument.cs (2)
1098StaticTextPointer highlightTransitionPosition; 1099StaticTextPointer highlightRangeStart;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (16)
111ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 116StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 121TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 126int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 131int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 136object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 141DependencyObject ITextContainer.GetParent(StaticTextPointer position) 146StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 151StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 156int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 161int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 166object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (2)
78int ITextPointer.CompareTo(StaticTextPointer position) 267StaticTextPointer ITextPointer.CreateStaticPointer()
src\Framework\System\Windows\Documents\HighlightLayer.cs (4)
48internal abstract object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction); 59internal abstract bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction); 71internal abstract StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction);
src\Framework\System\Windows\Documents\Highlights.cs (16)
67internal virtual object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 100internal virtual bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 125internal virtual StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 127StaticTextPointer changePosition; 128StaticTextPointer closestChangePosition; 131closestChangePosition = StaticTextPointer.Null; 146closestChangePosition = StaticTextPointer.Min(closestChangePosition, changePosition); 150closestChangePosition = StaticTextPointer.Max(closestChangePosition, changePosition); 182internal virtual StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 184StaticTextPointer changePosition; 185StaticTextPointer characterRunEndPosition; 190changePosition = StaticTextPointer.Null; 345StaticTextPointer highlightTransitionPosition; 346StaticTextPointer highlightRangeStart;
src\Framework\System\Windows\Documents\ITextContainer.cs (16)
48ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 50StaticTextPointer CreateStaticPointerAtOffset(int offset); 52TextPointerContext GetPointerContext(StaticTextPointer pointer, LogicalDirection direction); 54int GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2); 56int GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count); 58object GetAdjacentElement(StaticTextPointer position, LogicalDirection direction); 60DependencyObject GetParent(StaticTextPointer position); 62StaticTextPointer CreatePointer(StaticTextPointer position, int offset); 64StaticTextPointer GetNextContextPosition(StaticTextPointer position, LogicalDirection direction); 66int CompareTo(StaticTextPointer position1, StaticTextPointer position2); 68int CompareTo(StaticTextPointer position1, ITextPointer position2); 70object GetValue(StaticTextPointer position, DependencyProperty formattingProperty);
src\Framework\System\Windows\Documents\ITextPointer.cs (2)
31StaticTextPointer CreateStaticPointer(); 50int CompareTo(StaticTextPointer position);
src\Framework\System\Windows\Documents\NullTextContainer.cs (16)
98ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 103StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 108TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 113int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 118int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 123object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 128DependencyObject ITextContainer.GetParent(StaticTextPointer position) 133StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 138StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 143int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 148int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 153object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (2)
57int ITextPointer.CompareTo(StaticTextPointer position) 174StaticTextPointer ITextPointer.CreateStaticPointer()
src\Framework\System\Windows\Documents\Speller.cs (3)
155StaticTextPointer endPosition; 257StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 1405StaticTextPointer nextErrorTransition;
src\Framework\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)
src\Framework\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) 758private StaticTextPointer GetRunEndPosition(int index) 760StaticTextPointer position;
src\Framework\System\Windows\Documents\StaticTextPointer.cs (11)
65internal int GetOffsetToPosition(StaticTextPointer position) 86internal StaticTextPointer CreatePointer(int offset) 93internal StaticTextPointer GetNextContextPosition(LogicalDirection direction) 100internal int CompareTo(StaticTextPointer position) 121internal static StaticTextPointer Min(StaticTextPointer position1, StaticTextPointer position2) 128internal static StaticTextPointer Max(StaticTextPointer position1, StaticTextPointer position2) 204internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
src\Framework\System\Windows\Documents\TextContainer.cs (21)
493ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 498internal StaticTextPointer CreateStaticPointerAtOffset(int offset) 515StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 520TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 547internal int GetInternalOffset(StaticTextPointer position) 565int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 570int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 586object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 604private TextTreeNode GetScopingNode(StaticTextPointer position) 622DependencyObject ITextContainer.GetParent(StaticTextPointer position) 627StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 633StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 638StaticTextPointer nextContextPosition; 682nextContextPosition = StaticTextPointer.Null; 688int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 713int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 738object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
src\Framework\System\Windows\Documents\TextElement.cs (4)
341internal StaticTextPointer StaticElementStart 374internal StaticTextPointer StaticContentStart 407internal StaticTextPointer StaticContentEnd 448internal StaticTextPointer StaticElementEnd
src\Framework\System\Windows\Documents\TextPointer.cs (2)
2378int ITextPointer.CompareTo(StaticTextPointer position) 2593StaticTextPointer ITextPointer.CreateStaticPointer()
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (6)
62internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 79internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 109internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 111StaticTextPointer transitionPosition; 113transitionPosition = StaticTextPointer.Null;