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