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