27 references to Generation
PresentationFramework (27)
System\Windows\Documents\RangeContentEnumerator.cs (4)
38_generation = _start.TextContainer.Generation; 88if (_generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 151if (_start != null && _generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 210if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\TextContainer.cs (9)
490nodeOffset = (offset + 1) - node.GetSymbolOffset(this.Generation); 535offset = node.GetSymbolOffset(this.Generation) + nodeOffset; 563return textNode == null ? 0 : TextPointer.GetTextInRun(this, textNode.GetSymbolOffset(this.Generation), textNode, nodeOffset, direction, textBuffer, startIndex, count); 910symbolOffset = textNode.GetSymbolOffset(this.Generation); 1073symbolOffset = elementNode.GetSymbolOffset(this.Generation); 1189symbolOffset = objectNode.GetSymbolOffset(this.Generation); 1720return this.Generation; 2434elementText = TextTreeText.CutText(_rootNode.RootTextBlock, elementNode.GetSymbolOffset(this.Generation), elementNode.SymbolCount); 2772symbolOffset = elementNode.GetSymbolOffset(this.Generation);
System\Windows\Documents\TextElement.cs (4)
1236return _textElementNode.GetSymbolOffset(EnsureTextContainer().Generation) - 1; 1248return _textElementNode.GetSymbolOffset(EnsureTextContainer().Generation); 1260return _textElementNode.GetSymbolOffset(EnsureTextContainer().Generation) + _textElementNode.SymbolCount - 2; 1272return _textElementNode.GetSymbolOffset(EnsureTextContainer().Generation) + _textElementNode.SymbolCount - 1;
System\Windows\Documents\TextElementEnumerator.cs (3)
36_generation = _start.TextContainer.Generation; 104if (_start != null && _generation != _start.TextContainer.Generation) 158if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\TextPointer.cs (4)
2913offset = node.GetSymbolOffset(tree.Generation); 2917offset = node.GetSymbolOffset(tree.Generation) + 1; 2921offset = node.GetSymbolOffset(tree.Generation) + node.SymbolCount - 1; 2925offset = node.GetSymbolOffset(tree.Generation) + node.SymbolCount;
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
223symbolOffset = textNode.GetSymbolOffset(this.TextContainer.Generation);
System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
24: base(tree, elementNode.GetSymbolOffset(tree.Generation))
System\Windows\Documents\TextTreeUndo.cs (1)
69undoManager.Add(new TextTreePropertyUndoUnit(textContainer, element.TextElementNode.GetSymbolOffset(textContainer.Generation) + 1, record));