37 references to Edge
PresentationFramework (37)
System\Windows\Documents\TextContainer.cs (6)
849Invariant.Assert((position.Edge == ElementEdge.AfterEnd && position.Node.GetPreviousNode() is TextTreeTextNode && position.Node.GetPreviousNode().SymbolCount > 0) || 850(position.Edge == ElementEdge.BeforeStart && position.Node.GetNextNode() is TextTreeTextNode && position.Node.GetNextNode().SymbolCount > 0)); 868if (position.Edge == ElementEdge.BeforeStart || position.Edge == ElementEdge.BeforeEnd) 2627switch (startPosition.Edge) 2649switch (endPosition.Edge)
System\Windows\Documents\TextPointer.cs (30)
547return (direction == LogicalDirection.Forward) ? GetPointerContextForward(_node, this.Edge) : GetPointerContextBackward(_node, this.Edge); 811return GetAdjacentElement(_node, this.Edge, direction); 1484return $"TextPointer Id={_debugId} NodeId={_node.DebugId} Edge={this.Edge}"; 1860MoveToNode(_tree, textPosition.Node, textPosition.Edge); 1991SetNodeAndEdge(AdjustRefCounts(node, edge, _node, this.Edge), edge); 2199switch (this.Edge) 2266edge = this.Edge; 2270SetNodeAndEdge(AdjustRefCounts((TextTreeNode)newNode, edge, _node, this.Edge), edge); 2567return new StaticTextPointer(_tree, _node, _node.GetOffsetFromEdge(this.Edge)); 2842return GetAdjacentSiblingNode(_node, this.Edge, direction); 2902return GetSymbolOffset(_tree, _node, this.Edge); 2967edge = this.Edge; 3058return GetScopingNode(_node, this.Edge); 3092return GetNextNodeAndEdge(_node, this.Edge, _tree.PlainTextOnly, out node, out edge); 3262return GetPreviousNodeAndEdge(_node, this.Edge, _tree.PlainTextOnly, out node, out edge); 3744switch (this.Edge) 3916edge = position.Edge; 4055return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4070return GetAdjacentNode(_node, this.Edge, direction); 4102SetNodeAndEdge(AdjustRefCounts(node, edge, _node, this.Edge), edge); 4139Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)"); 4144Invariant.Assert(this.Edge == ElementEdge.AfterStart || this.Edge == ElementEdge.AfterEnd, "Bad position edge/gravity pair! (2)"); 4150Invariant.Assert(this.Edge != ElementEdge.BeforeStart && this.Edge != ElementEdge.AfterEnd, "Position at outer edge of root!"); 4155Invariant.Assert(this.Edge != ElementEdge.AfterStart && this.Edge != ElementEdge.BeforeEnd, "Position at inner leaf node edge!");
System\Windows\Documents\TextTreeNode.cs (1)
466InsertAtNode(position.Node, position.Edge);