24 instantiations of StaticTextPointer
PresentationFramework (24)
System\Windows\Controls\PasswordTextContainer.cs (3)
230return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 260return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 265return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Controls\PasswordTextNavigator.cs (1)
320return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
121return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 151return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 156return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
180return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\FixedTextContainer.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));
System\Windows\Documents\FixedTextPointer.cs (1)
249return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\NullTextContainer.cs (3)
98return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward)); 128return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 133return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
System\Windows\Documents\NullTextNavigator.cs (1)
171return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
System\Windows\Documents\StaticTextPointer.cs (1)
198internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
System\Windows\Documents\TextContainer.cs (2)
492return new StaticTextPointer(this, node, nodeOffset); 658nextContextPosition = new StaticTextPointer(this, node, node.GetOffsetFromEdge(edge));
System\Windows\Documents\TextElement.cs (4)
341return new StaticTextPointer(tree, _textElementNode, 0); 374return new StaticTextPointer(tree, _textElementNode, 1); 407return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount - 1); 448return new StaticTextPointer(tree, _textElementNode, _textElementNode.SymbolCount);
System\Windows\Documents\TextPointer.cs (1)
2567return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.Edge));
239 references to StaticTextPointer
PresentationFramework (239)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
237internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 264internal override bool IsContentHighlighted(StaticTextPointer staticTextPosition, LogicalDirection direction) 271internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 284return dynamicPosition == null ? StaticTextPointer.Null : dynamicPosition.CreateStaticPointer(); 452private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 476private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
MS\Internal\Documents\TextBoxLine.cs (3)
72StaticTextPointer position = _owner.Host.TextContainer.CreateStaticPointerAtOffset(dcp); 419private TextRun HandleText(StaticTextPointer position) 424StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
MS\Internal\Documents\TextContainerHelper.cs (1)
592internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
MS\Internal\PtsHost\Line.cs (2)
150StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 214StaticTextPointer pointer = position.CreateStaticPointer();
MS\Internal\PtsHost\LineBase.cs (5)
81protected TextRun HandleText(StaticTextPointer position) 84StaticTextPointer endOfRunPosition; 133protected TextRun HandleElementStartEdge(StaticTextPointer position) 248protected TextRun HandleElementEndEdge(StaticTextPointer position) 302protected TextRun HandleEmbeddedObject(int dcp, StaticTextPointer position)
MS\Internal\PtsHost\ListParaClient.cs (1)
62TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
MS\Internal\PtsHost\OptimalTextSource.cs (2)
97StaticTextPointer position = textContainer.CreateStaticPointerAtOffset(_cpPara + dcp); 163StaticTextPointer pointer = position.CreateStaticPointer();
MS\Internal\PtsHost\TextParaClient.cs (1)
1090StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (2)
1212StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1515TextProperties defaultTextProperties = new TextProperties(Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
MS\Internal\Text\ComplexLine.cs (7)
40StaticTextPointer position = _owner.TextContainer.CreateStaticPointerAtOffset(dcp); 103StaticTextPointer pointer = position.CreateStaticPointer(); 329private TextRun HandleText(StaticTextPointer position) 332StaticTextPointer endOfRunPosition; 379private TextRun HandleElementStartEdge(StaticTextPointer position) 470private TextRun HandleElementEndEdge(StaticTextPointer position) 520private TextRun HandleInlineObject(StaticTextPointer position, int dcp)
MS\Internal\Text\DynamicPropertyReader.cs (1)
247internal static Brush GetBackgroundBrushForInlineObject(StaticTextPointer position)
MS\Internal\Text\TextProperties.cs (2)
126internal TextProperties(DependencyObject target, StaticTextPointer position, bool inlineObjects, bool getBackground, double pixelsPerDip) 221private static TextDecorationCollection GetHighlightTextDecorations(StaticTextPointer highlightPosition)
System\Windows\Controls\PasswordTextContainer.cs (16)
223ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 228StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 233TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 238int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 243int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 248object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 253DependencyObject ITextContainer.GetParent(StaticTextPointer position) 258StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 263StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 268int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 273int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 278object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Controls\PasswordTextNavigator.cs (2)
101int ITextPointer.CompareTo(StaticTextPointer position) 318StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\DocumentSequenceHighlightLayer.cs (4)
50internal override object GetHighlightValue(StaticTextPointer staticTextPointer, LogicalDirection direction) 58internal override bool IsContentHighlighted(StaticTextPointer staticTextPointer, LogicalDirection direction) 65internal override StaticTextPointer GetNextChangePosition(StaticTextPointer staticTextPointer, LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextContainer.cs (40)
114ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 119StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 124TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 129int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 134int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 139object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 144DependencyObject ITextContainer.GetParent(StaticTextPointer position) 149StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 154StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 159int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 164int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 169object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty) 660StaticTextPointer highlightTransitionPosition; 661StaticTextPointer highlightRangeStart; 872internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 874StaticTextPointer parentPosition; 893internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 895StaticTextPointer parentPosition; 915internal override StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 917StaticTextPointer parentPosition; 918StaticTextPointer returnPointer = StaticTextPointer.Null; 958internal override StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 960StaticTextPointer parentPosition; 961StaticTextPointer returnPointer = StaticTextPointer.Null; 983private bool EnsureParentPosition(StaticTextPointer textPosition, LogicalDirection direction, out StaticTextPointer parentPosition) 1015private StaticTextPointer GetStaticPositionInChildContainer(StaticTextPointer textPosition, LogicalDirection direction, StaticTextPointer originalPosition) 1017StaticTextPointer parentTextPointer = StaticTextPointer.Null; 1041parentTextPointer = StaticTextPointer.Null;
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
64/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 66int ITextPointer.CompareTo(StaticTextPointer position) 178StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\FixedDocument.cs (2)
1051StaticTextPointer highlightTransitionPosition; 1052StaticTextPointer highlightRangeStart;
System\Windows\Documents\FixedTextContainer.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)
System\Windows\Documents\FixedTextPointer.cs (2)
67int ITextPointer.CompareTo(StaticTextPointer position) 247StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\HighlightLayer.cs (4)
40internal abstract object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction); 51internal abstract bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction); 63internal abstract StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction);
System\Windows\Documents\Highlights.cs (16)
60internal virtual object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 93internal virtual bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 118internal virtual StaticTextPointer GetNextHighlightChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 120StaticTextPointer changePosition; 121StaticTextPointer closestChangePosition; 124closestChangePosition = StaticTextPointer.Null; 139closestChangePosition = StaticTextPointer.Min(closestChangePosition, changePosition); 143closestChangePosition = StaticTextPointer.Max(closestChangePosition, changePosition); 175internal virtual StaticTextPointer GetNextPropertyChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 177StaticTextPointer changePosition; 178StaticTextPointer characterRunEndPosition; 183changePosition = StaticTextPointer.Null; 338StaticTextPointer highlightTransitionPosition; 339StaticTextPointer highlightRangeStart;
System\Windows\Documents\ITextContainer.cs (16)
44ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 46StaticTextPointer CreateStaticPointerAtOffset(int offset); 48TextPointerContext GetPointerContext(StaticTextPointer pointer, LogicalDirection direction); 50int GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2); 52int GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count); 54object GetAdjacentElement(StaticTextPointer position, LogicalDirection direction); 56DependencyObject GetParent(StaticTextPointer position); 58StaticTextPointer CreatePointer(StaticTextPointer position, int offset); 60StaticTextPointer GetNextContextPosition(StaticTextPointer position, LogicalDirection direction); 62int CompareTo(StaticTextPointer position1, StaticTextPointer position2); 64int CompareTo(StaticTextPointer position1, ITextPointer position2); 66object GetValue(StaticTextPointer position, DependencyProperty formattingProperty);
System\Windows\Documents\ITextPointer.cs (2)
27StaticTextPointer CreateStaticPointer(); 46int CompareTo(StaticTextPointer position);
System\Windows\Documents\NullTextContainer.cs (16)
91ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 96StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 101TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 106int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 111int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 116object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 121DependencyObject ITextContainer.GetParent(StaticTextPointer position) 126StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 131StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 136int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 141int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 146object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\NullTextNavigator.cs (2)
52int ITextPointer.CompareTo(StaticTextPointer position) 169StaticTextPointer ITextPointer.CreateStaticPointer()
System\Windows\Documents\Speller.cs (3)
146StaticTextPointer endPosition; 229StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 1321StaticTextPointer nextErrorTransition;
System\Windows\Documents\SpellerHighlightLayer.cs (4)
52internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 69internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 76internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction)
System\Windows\Documents\SpellerStatusTable.cs (13)
163internal bool IsRunType(StaticTextPointer textPosition, LogicalDirection direction, RunType runType) 178internal StaticTextPointer GetNextErrorTransition(StaticTextPointer textPosition, LogicalDirection direction) 180StaticTextPointer transitionPosition; 184transitionPosition = StaticTextPointer.Null; 243internal bool GetError(StaticTextPointer textPosition, LogicalDirection direction, 263internal bool GetRun(StaticTextPointer position, LogicalDirection direction, out RunType runType, out StaticTextPointer end) 268end = StaticTextPointer.Null; 308private int GetErrorIndex(StaticTextPointer textPosition, LogicalDirection direction) 331private int FindIndex(StaticTextPointer position, LogicalDirection direction) 755private StaticTextPointer GetRunEndPosition(int index) 757StaticTextPointer position;
System\Windows\Documents\StaticTextPointer.cs (11)
59internal int GetOffsetToPosition(StaticTextPointer position) 80internal StaticTextPointer CreatePointer(int offset) 87internal StaticTextPointer GetNextContextPosition(LogicalDirection direction) 94internal int CompareTo(StaticTextPointer position) 115internal static StaticTextPointer Min(StaticTextPointer position1, StaticTextPointer position2) 122internal static StaticTextPointer Max(StaticTextPointer position1, StaticTextPointer position2) 198internal static StaticTextPointer Null = new StaticTextPointer(null, null, 0);
System\Windows\Documents\TextContainer.cs (21)
473ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 478internal StaticTextPointer CreateStaticPointerAtOffset(int offset) 495StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset) 500TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction) 527internal int GetInternalOffset(StaticTextPointer position) 545int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2) 550int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 566object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction) 584private TextTreeNode GetScopingNode(StaticTextPointer position) 602DependencyObject ITextContainer.GetParent(StaticTextPointer position) 607StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset) 613StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction) 618StaticTextPointer nextContextPosition; 662nextContextPosition = StaticTextPointer.Null; 668int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2) 693int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 718object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
System\Windows\Documents\TextElement.cs (4)
335internal StaticTextPointer StaticElementStart 368internal StaticTextPointer StaticContentStart 401internal StaticTextPointer StaticContentEnd 442internal StaticTextPointer StaticElementEnd
System\Windows\Documents\TextPointer.cs (2)
2353int ITextPointer.CompareTo(StaticTextPointer position) 2562StaticTextPointer ITextPointer.CreateStaticPointer()
System\windows\Documents\TextSelectionHighlightLayer.cs (6)
55internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction) 72internal override bool IsContentHighlighted(StaticTextPointer textPosition, LogicalDirection direction) 101internal override StaticTextPointer GetNextChangePosition(StaticTextPointer textPosition, LogicalDirection direction) 103StaticTextPointer transitionPosition; 105transitionPosition = StaticTextPointer.Null;