19 references to GetSymbolOffset
PresentationFramework (19)
src\Framework\System\Windows\Documents\TextContainer.cs (8)
510
nodeOffset = (offset + 1) - node.
GetSymbolOffset
(this.Generation);
555
offset = node.
GetSymbolOffset
(this.Generation) + nodeOffset;
583
return textNode == null ? 0 : TextPointer.GetTextInRun(this, textNode.
GetSymbolOffset
(this.Generation), textNode, nodeOffset, direction, textBuffer, startIndex, count);
930
symbolOffset = textNode.
GetSymbolOffset
(this.Generation);
1096
symbolOffset = elementNode.
GetSymbolOffset
(this.Generation);
1212
symbolOffset = objectNode.
GetSymbolOffset
(this.Generation);
2475
elementText = TextTreeText.CutText(_rootNode.RootTextBlock, elementNode.
GetSymbolOffset
(this.Generation), elementNode.SymbolCount);
2816
symbolOffset = elementNode.
GetSymbolOffset
(this.Generation);
src\Framework\System\Windows\Documents\TextElement.cs (4)
1299
return _textElementNode.
GetSymbolOffset
(EnsureTextContainer().Generation) - 1;
1311
return _textElementNode.
GetSymbolOffset
(EnsureTextContainer().Generation);
1323
return _textElementNode.
GetSymbolOffset
(EnsureTextContainer().Generation) + _textElementNode.SymbolCount - 2;
1335
return _textElementNode.
GetSymbolOffset
(EnsureTextContainer().Generation) + _textElementNode.SymbolCount - 1;
src\Framework\System\Windows\Documents\TextPointer.cs (4)
2944
offset = node.
GetSymbolOffset
(tree.Generation);
2948
offset = node.
GetSymbolOffset
(tree.Generation) + 1;
2952
offset = node.
GetSymbolOffset
(tree.Generation) + node.SymbolCount - 1;
2956
offset = node.
GetSymbolOffset
(tree.Generation) + node.SymbolCount;
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
231
symbolOffset = textNode.
GetSymbolOffset
(this.TextContainer.Generation);
src\Framework\System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
30
: base(tree, elementNode.
GetSymbolOffset
(tree.Generation))
src\Framework\System\Windows\Documents\TextTreeUndo.cs (1)
73
undoManager.Add(new TextTreePropertyUndoUnit(textContainer, element.TextElementNode.
GetSymbolOffset
(textContainer.Generation) + 1, record));