55 references to BeforeEnd
PresentationFramework (55)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
657case ElementEdge.BeforeEnd:
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (1)
278return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\FixedElement.cs (1)
292pos.MoveToElementEdge(ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
463case ElementEdge.BeforeEnd:
src\Framework\System\Windows\Documents\TextContainer.cs (9)
650edge = (direction == LogicalDirection.Backward) ? ElementEdge.AfterStart : ElementEdge.BeforeEnd; 888if (position.Edge == ElementEdge.BeforeStart || position.Edge == ElementEdge.BeforeEnd) 1141endEdgePosition = new TextPointer(this, elementNode, ElementEdge.BeforeEnd); 1350edge = ElementEdge.BeforeEnd; 1686endPosition = new TextPointer(this, _rootNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 2365nextEdge = ElementEdge.BeforeEnd; 2657case ElementEdge.BeforeEnd: 2681case ElementEdge.BeforeEnd: 3014nextEdge = ElementEdge.BeforeEnd;
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
139lineEnd.MoveToElementEdge(ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\TextElement.cs (4)
311TextPointer contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 400contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 1564tree.InsertTextInternal(new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd), textData); 1601position = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\TextPointer.cs (28)
2253edge = ElementEdge.BeforeEnd; 2258case ElementEdge.BeforeEnd: 2285edge = ElementEdge.BeforeEnd; 2892case ElementEdge.BeforeEnd: 2915case ElementEdge.BeforeEnd: 2951case ElementEdge.BeforeEnd: 3104case ElementEdge.BeforeEnd: 3164edge = ElementEdge.BeforeEnd; 3170edge = ElementEdge.BeforeEnd; 3171goto case ElementEdge.BeforeEnd; 3204case ElementEdge.BeforeEnd: 3267edge = ElementEdge.BeforeEnd; 3331edge = ElementEdge.BeforeEnd; 3368case ElementEdge.BeforeEnd: 3375edge = ElementEdge.BeforeEnd; 3478goto case ElementEdge.BeforeEnd; 3482case ElementEdge.BeforeEnd: 3540case ElementEdge.BeforeEnd: 3791case ElementEdge.BeforeEnd: 4047newEdge = ElementEdge.BeforeEnd; 4052case ElementEdge.BeforeEnd: 4073newEdge = ElementEdge.BeforeEnd; 4086return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4113if (edge == ElementEdge.AfterStart || edge == ElementEdge.BeforeEnd) 4170Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)"); 4186Invariant.Assert(this.Edge != ElementEdge.AfterStart && this.Edge != ElementEdge.BeforeEnd, "Position at inner leaf node edge!"); 4289edge == ElementEdge.BeforeEnd || 4315edge == ElementEdge.BeforeEnd ||
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (3)
256ptr.MoveToElementEdge(ElementEdge.BeforeEnd); 290endPointer.MoveToElementEdge(ElementEdge.BeforeEnd); // 501position.MoveToElementEdge(ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\TextTreeNode.cs (3)
416case ElementEdge.BeforeEnd: 507edge = ElementEdge.BeforeEnd; 527case ElementEdge.BeforeEnd:
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (2)
285return (_edgeReferenceCounts & ElementEdge.BeforeEnd) != 0; 291_edgeReferenceCounts |= ElementEdge.BeforeEnd;
src\Framework\System\Windows\Documents\ValidationHelper.cs (1)
93edge != ElementEdge.BeforeEnd &&