55 references to BeforeEnd
PresentationFramework (55)
MS\Internal\Documents\TextContainerHelper.cs (1)
652case ElementEdge.BeforeEnd:
MS\Internal\PtsHost\BaseParagraph.cs (1)
274return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd);
System\Windows\Documents\FixedElement.cs (1)
287pos.MoveToElementEdge(ElementEdge.BeforeEnd);
System\Windows\Documents\FixedTextPointer.cs (1)
448case ElementEdge.BeforeEnd:
System\Windows\Documents\TextContainer.cs (9)
635edge = (direction == LogicalDirection.Backward) ? ElementEdge.AfterStart : ElementEdge.BeforeEnd; 873if (position.Edge == ElementEdge.BeforeStart || position.Edge == ElementEdge.BeforeEnd) 1126endEdgePosition = new TextPointer(this, elementNode, ElementEdge.BeforeEnd); 1335edge = ElementEdge.BeforeEnd; 1671endPosition = new TextPointer(this, _rootNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 2350nextEdge = ElementEdge.BeforeEnd; 2642case ElementEdge.BeforeEnd: 2666case ElementEdge.BeforeEnd: 2998nextEdge = ElementEdge.BeforeEnd;
System\windows\Documents\TextEditorSelection.cs (1)
131lineEnd.MoveToElementEdge(ElementEdge.BeforeEnd);
System\Windows\Documents\TextElement.cs (4)
306TextPointer contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 395contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 1516tree.InsertTextInternal(new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd), textData); 1550position = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd);
System\Windows\Documents\TextPointer.cs (28)
2233edge = ElementEdge.BeforeEnd; 2238case ElementEdge.BeforeEnd: 2265edge = ElementEdge.BeforeEnd; 2866case ElementEdge.BeforeEnd: 2889case ElementEdge.BeforeEnd: 2925case ElementEdge.BeforeEnd: 3078case ElementEdge.BeforeEnd: 3138edge = ElementEdge.BeforeEnd; 3144edge = ElementEdge.BeforeEnd; 3145goto case ElementEdge.BeforeEnd; 3178case ElementEdge.BeforeEnd: 3241edge = ElementEdge.BeforeEnd; 3305edge = ElementEdge.BeforeEnd; 3342case ElementEdge.BeforeEnd: 3349edge = ElementEdge.BeforeEnd; 3452goto case ElementEdge.BeforeEnd; 3456case ElementEdge.BeforeEnd: 3514case ElementEdge.BeforeEnd: 3765case ElementEdge.BeforeEnd: 4021newEdge = ElementEdge.BeforeEnd; 4026case ElementEdge.BeforeEnd: 4047newEdge = ElementEdge.BeforeEnd; 4060return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4087if (edge == ElementEdge.AfterStart || edge == ElementEdge.BeforeEnd) 4144Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)"); 4160Invariant.Assert(this.Edge != ElementEdge.AfterStart && this.Edge != ElementEdge.BeforeEnd, "Position at inner leaf node edge!"); 4263edge == ElementEdge.BeforeEnd || 4289edge == ElementEdge.BeforeEnd ||
System\Windows\Documents\TextRangeSerialization.cs (3)
250ptr.MoveToElementEdge(ElementEdge.BeforeEnd); 284endPointer.MoveToElementEdge(ElementEdge.BeforeEnd); // Is this necessary? 495position.MoveToElementEdge(ElementEdge.BeforeEnd);
System\Windows\Documents\TextTreeNode.cs (3)
410case ElementEdge.BeforeEnd: 501edge = ElementEdge.BeforeEnd; 521case ElementEdge.BeforeEnd:
System\Windows\Documents\TextTreeTextElementNode.cs (2)
279return (_edgeReferenceCounts & ElementEdge.BeforeEnd) != 0; 285_edgeReferenceCounts |= ElementEdge.BeforeEnd;
System\Windows\Documents\ValidationHelper.cs (1)
85edge != ElementEdge.BeforeEnd &&