36 references to Edge
PresentationFramework (36)
src\Framework\System\Windows\Documents\TextContainer.cs (6)
869
Invariant.Assert((position.
Edge
== ElementEdge.AfterEnd && position.Node.GetPreviousNode() is TextTreeTextNode && position.Node.GetPreviousNode().SymbolCount > 0) ||
870
(position.
Edge
== ElementEdge.BeforeStart && position.Node.GetNextNode() is TextTreeTextNode && position.Node.GetNextNode().SymbolCount > 0));
888
if (position.
Edge
== ElementEdge.BeforeStart || position.
Edge
== ElementEdge.BeforeEnd)
2647
switch (startPosition.
Edge
)
2669
switch (endPosition.
Edge
)
src\Framework\System\Windows\Documents\TextPointer.cs (29)
563
return (direction == LogicalDirection.Forward) ? GetPointerContextForward(_node, this.
Edge
) : GetPointerContextBackward(_node, this.
Edge
);
827
return GetAdjacentElement(_node, this.
Edge
, direction);
1882
MoveToNode(_tree, textPosition.Node, textPosition.
Edge
);
2013
SetNodeAndEdge(AdjustRefCounts(node, edge, _node, this.
Edge
), edge);
2224
switch (this.
Edge
)
2291
edge = this.
Edge
;
2295
SetNodeAndEdge(AdjustRefCounts((TextTreeNode)newNode, edge, _node, this.
Edge
), edge);
2598
return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.
Edge
));
2873
return GetAdjacentSiblingNode(_node, this.
Edge
, direction);
2933
return GetSymbolOffset(_tree, _node, this.
Edge
);
2998
edge = this.
Edge
;
3089
return GetScopingNode(_node, this.
Edge
);
3123
return GetNextNodeAndEdge(_node, this.
Edge
, _tree.PlainTextOnly, out node, out edge);
3293
return GetPreviousNodeAndEdge(_node, this.
Edge
, _tree.PlainTextOnly, out node, out edge);
3775
switch (this.
Edge
)
3947
edge = position.
Edge
;
4086
return (this.
Edge
== ElementEdge.BeforeStart || this.
Edge
== ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward;
4101
return GetAdjacentNode(_node, this.
Edge
, direction);
4133
SetNodeAndEdge(AdjustRefCounts(node, edge, _node, this.
Edge
), edge);
4170
Invariant.Assert(this.
Edge
== ElementEdge.BeforeStart || this.
Edge
== ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)");
4175
Invariant.Assert(this.
Edge
== ElementEdge.AfterStart || this.
Edge
== ElementEdge.AfterEnd, "Bad position edge/gravity pair! (2)");
4181
Invariant.Assert(this.
Edge
!= ElementEdge.BeforeStart && this.
Edge
!= ElementEdge.AfterEnd, "Position at outer edge of root!");
4186
Invariant.Assert(this.
Edge
!= ElementEdge.AfterStart && this.
Edge
!= ElementEdge.BeforeEnd, "Position at inner leaf node edge!");
src\Framework\System\Windows\Documents\TextTreeNode.cs (1)
473
InsertAtNode(position.Node, position.
Edge
);