37 references to Edge
PresentationFramework (37)
System\Windows\Documents\TextContainer.cs (6)
854
Invariant.Assert((position.
Edge
== ElementEdge.AfterEnd && position.Node.GetPreviousNode() is TextTreeTextNode && position.Node.GetPreviousNode().SymbolCount > 0) ||
855
(position.
Edge
== ElementEdge.BeforeStart && position.Node.GetNextNode() is TextTreeTextNode && position.Node.GetNextNode().SymbolCount > 0));
873
if (position.
Edge
== ElementEdge.BeforeStart || position.
Edge
== ElementEdge.BeforeEnd)
2632
switch (startPosition.
Edge
)
2654
switch (endPosition.
Edge
)
System\Windows\Documents\TextPointer.cs (30)
552
return (direction == LogicalDirection.Forward) ? GetPointerContextForward(_node, this.
Edge
) : GetPointerContextBackward(_node, this.
Edge
);
816
return GetAdjacentElement(_node, this.
Edge
, direction);
1489
return $"TextPointer Id={_debugId} NodeId={_node.DebugId} Edge={this.
Edge
}";
1865
MoveToNode(_tree, textPosition.Node, textPosition.
Edge
);
1996
SetNodeAndEdge(AdjustRefCounts(node, edge, _node, this.
Edge
), edge);
2204
switch (this.
Edge
)
2271
edge = this.
Edge
;
2275
SetNodeAndEdge(AdjustRefCounts((TextTreeNode)newNode, edge, _node, this.
Edge
), edge);
2572
return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.
Edge
));
2847
return GetAdjacentSiblingNode(_node, this.
Edge
, direction);
2907
return GetSymbolOffset(_tree, _node, this.
Edge
);
2972
edge = this.
Edge
;
3063
return GetScopingNode(_node, this.
Edge
);
3097
return GetNextNodeAndEdge(_node, this.
Edge
, _tree.PlainTextOnly, out node, out edge);
3267
return GetPreviousNodeAndEdge(_node, this.
Edge
, _tree.PlainTextOnly, out node, out edge);
3749
switch (this.
Edge
)
3921
edge = position.
Edge
;
4060
return (this.
Edge
== ElementEdge.BeforeStart || this.
Edge
== ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward;
4075
return GetAdjacentNode(_node, this.
Edge
, direction);
4107
SetNodeAndEdge(AdjustRefCounts(node, edge, _node, this.
Edge
), edge);
4144
Invariant.Assert(this.
Edge
== ElementEdge.BeforeStart || this.
Edge
== ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)");
4149
Invariant.Assert(this.
Edge
== ElementEdge.AfterStart || this.
Edge
== ElementEdge.AfterEnd, "Bad position edge/gravity pair! (2)");
4155
Invariant.Assert(this.
Edge
!= ElementEdge.BeforeStart && this.
Edge
!= ElementEdge.AfterEnd, "Position at outer edge of root!");
4160
Invariant.Assert(this.
Edge
!= ElementEdge.AfterStart && this.
Edge
!= ElementEdge.BeforeEnd, "Position at inner leaf node edge!");
System\Windows\Documents\TextTreeNode.cs (1)
467
InsertAtNode(position.Node, position.
Edge
);