27 references to Generation
PresentationFramework (27)
System\Windows\Documents\RangeContentEnumerator.cs (4)
37
_generation = _start.TextContainer.
Generation
;
87
if (_generation != _start.TextContainer.
Generation
&& !IsLogicalChildrenIterationInProgress)
150
if (_start != null && _generation != _start.TextContainer.
Generation
&& !IsLogicalChildrenIterationInProgress)
209
if (_start != null && _generation != _start.TextContainer.
Generation
)
System\Windows\Documents\TextContainer.cs (9)
489
nodeOffset = (offset + 1) - node.GetSymbolOffset(this.
Generation
);
534
offset = node.GetSymbolOffset(this.
Generation
) + nodeOffset;
562
return textNode == null ? 0 : TextPointer.GetTextInRun(this, textNode.GetSymbolOffset(this.
Generation
), textNode, nodeOffset, direction, textBuffer, startIndex, count);
909
symbolOffset = textNode.GetSymbolOffset(this.
Generation
);
1072
symbolOffset = elementNode.GetSymbolOffset(this.
Generation
);
1188
symbolOffset = objectNode.GetSymbolOffset(this.
Generation
);
1719
return this.
Generation
;
2433
elementText = TextTreeText.CutText(_rootNode.RootTextBlock, elementNode.GetSymbolOffset(this.
Generation
), elementNode.SymbolCount);
2771
symbolOffset = elementNode.GetSymbolOffset(this.
Generation
);
System\Windows\Documents\TextElement.cs (4)
1235
return _textElementNode.GetSymbolOffset(EnsureTextContainer().
Generation
) - 1;
1247
return _textElementNode.GetSymbolOffset(EnsureTextContainer().
Generation
);
1259
return _textElementNode.GetSymbolOffset(EnsureTextContainer().
Generation
) + _textElementNode.SymbolCount - 2;
1271
return _textElementNode.GetSymbolOffset(EnsureTextContainer().
Generation
) + _textElementNode.SymbolCount - 1;
System\Windows\Documents\TextElementEnumerator.cs (3)
35
_generation = _start.TextContainer.
Generation
;
103
if (_start != null && _generation != _start.TextContainer.
Generation
)
157
if (_start != null && _generation != _start.TextContainer.
Generation
)
System\Windows\Documents\TextPointer.cs (4)
2912
offset = node.GetSymbolOffset(tree.
Generation
);
2916
offset = node.GetSymbolOffset(tree.
Generation
) + 1;
2920
offset = node.GetSymbolOffset(tree.
Generation
) + node.SymbolCount - 1;
2924
offset = node.GetSymbolOffset(tree.
Generation
) + node.SymbolCount;
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
222
symbolOffset = textNode.GetSymbolOffset(this.TextContainer.
Generation
);
System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
23
: base(tree, elementNode.GetSymbolOffset(tree.
Generation
))
System\Windows\Documents\TextTreeUndo.cs (1)
68
undoManager.Add(new TextTreePropertyUndoUnit(textContainer, element.TextElementNode.GetSymbolOffset(textContainer.
Generation
) + 1, record));