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