55 references to BeforeEnd
PresentationFramework (55)
MS\Internal\Documents\TextContainerHelper.cs (1)
649
case ElementEdge.
BeforeEnd
:
MS\Internal\PtsHost\BaseParagraph.cs (1)
272
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.
BeforeEnd
);
System\Windows\Documents\FixedElement.cs (1)
279
pos.MoveToElementEdge(ElementEdge.
BeforeEnd
);
System\Windows\Documents\FixedTextPointer.cs (1)
443
case ElementEdge.
BeforeEnd
:
System\Windows\Documents\TextContainer.cs (9)
630
edge = (direction == LogicalDirection.Backward) ? ElementEdge.AfterStart : ElementEdge.
BeforeEnd
;
868
if (position.Edge == ElementEdge.BeforeStart || position.Edge == ElementEdge.
BeforeEnd
)
1121
endEdgePosition = new TextPointer(this, elementNode, ElementEdge.
BeforeEnd
);
1330
edge = ElementEdge.
BeforeEnd
;
1666
endPosition = new TextPointer(this, _rootNode, ElementEdge.
BeforeEnd
, LogicalDirection.Forward);
2345
nextEdge = ElementEdge.
BeforeEnd
;
2637
case ElementEdge.
BeforeEnd
:
2661
case ElementEdge.
BeforeEnd
:
2993
nextEdge = ElementEdge.
BeforeEnd
;
System\windows\Documents\TextEditorSelection.cs (1)
116
lineEnd.MoveToElementEdge(ElementEdge.
BeforeEnd
);
System\Windows\Documents\TextElement.cs (4)
305
TextPointer contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.
BeforeEnd
, LogicalDirection.Forward);
394
contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.
BeforeEnd
, LogicalDirection.Forward);
1515
tree.InsertTextInternal(new TextPointer(tree, _textElementNode, ElementEdge.
BeforeEnd
), textData);
1549
position = new TextPointer(tree, _textElementNode, ElementEdge.
BeforeEnd
);
System\Windows\Documents\TextPointer.cs (28)
2228
edge = ElementEdge.
BeforeEnd
;
2233
case ElementEdge.
BeforeEnd
:
2260
edge = ElementEdge.
BeforeEnd
;
2861
case ElementEdge.
BeforeEnd
:
2884
case ElementEdge.
BeforeEnd
:
2920
case ElementEdge.
BeforeEnd
:
3073
case ElementEdge.
BeforeEnd
:
3133
edge = ElementEdge.
BeforeEnd
;
3139
edge = ElementEdge.
BeforeEnd
;
3140
goto case ElementEdge.
BeforeEnd
;
3173
case ElementEdge.
BeforeEnd
:
3236
edge = ElementEdge.
BeforeEnd
;
3300
edge = ElementEdge.
BeforeEnd
;
3337
case ElementEdge.
BeforeEnd
:
3344
edge = ElementEdge.
BeforeEnd
;
3447
goto case ElementEdge.
BeforeEnd
;
3451
case ElementEdge.
BeforeEnd
:
3509
case ElementEdge.
BeforeEnd
:
3760
case ElementEdge.
BeforeEnd
:
4016
newEdge = ElementEdge.
BeforeEnd
;
4021
case ElementEdge.
BeforeEnd
:
4042
newEdge = ElementEdge.
BeforeEnd
;
4055
return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.
BeforeEnd
) ? LogicalDirection.Forward : LogicalDirection.Backward;
4082
if (edge == ElementEdge.AfterStart || edge == ElementEdge.
BeforeEnd
)
4139
Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.
BeforeEnd
, "Bad position edge/gravity pair! (1)");
4155
Invariant.Assert(this.Edge != ElementEdge.AfterStart && this.Edge != ElementEdge.
BeforeEnd
, "Position at inner leaf node edge!");
4258
edge == ElementEdge.
BeforeEnd
||
4284
edge == ElementEdge.
BeforeEnd
||
System\Windows\Documents\TextRangeSerialization.cs (3)
244
ptr.MoveToElementEdge(ElementEdge.
BeforeEnd
);
278
endPointer.MoveToElementEdge(ElementEdge.
BeforeEnd
); // Is this necessary?
489
position.MoveToElementEdge(ElementEdge.
BeforeEnd
);
System\Windows\Documents\TextTreeNode.cs (3)
409
case ElementEdge.
BeforeEnd
:
500
edge = ElementEdge.
BeforeEnd
;
520
case ElementEdge.
BeforeEnd
:
System\Windows\Documents\TextTreeTextElementNode.cs (2)
278
return (_edgeReferenceCounts & ElementEdge.
BeforeEnd
) != 0;
284
_edgeReferenceCounts |= ElementEdge.
BeforeEnd
;
System\Windows\Documents\ValidationHelper.cs (1)
83
edge != ElementEdge.
BeforeEnd
&&