400 references to ElementEdge
PresentationFramework (400)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1038cursor.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (2)
162TextPointer startPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.BeforeStart, LogicalDirection.Backward); 163TextPointer endPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.AfterEnd, LogicalDirection.Backward);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (19)
345start.MoveToElementEdge(ElementEdge.AfterEnd); 408position.MoveToElementEdge(ElementEdge.BeforeStart); 451position.MoveToElementEdge(ElementEdge.BeforeStart); 467position.MoveToElementEdge(ElementEdge.AfterEnd); 521internal static TextContentRange GetTextContentRangeForTextElementEdge(TextElement textElement, ElementEdge edge) 523Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd); 527if (edge == ElementEdge.AfterEnd) 631internal static int GetCPFromElement(ITextContainer textContainer, DependencyObject element, ElementEdge edge) 651case ElementEdge.BeforeStart: 654case ElementEdge.AfterStart: 657case ElementEdge.BeforeEnd: 660case ElementEdge.AfterEnd: 676cp = (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterStart) ? 0 : textContainer.SymbolCount; 707internal static int GetCPFromEmbeddedObject(UIElement embeddedObject, ElementEdge edge) 709Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Cannot retrieve CP from the content of embedded object."); 718cp = (edge == ElementEdge.BeforeStart) ? uiContainer.ContentStartOffset : uiContainer.ContentEndOffset;
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (5)
186int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 257return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 261return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 278return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd); 282return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterEnd);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
179CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 253CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
353elementOwner, ElementEdge.BeforeStart)); 361elementOwner, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (4)
102int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 379TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 386int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 1176int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (2)
598Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 606Paragraph.Element as TextElement, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (2)
603Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 611Paragraph.Element as TextElement, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\Line.cs (1)
133int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (2)
578elementOwner, ElementEdge.BeforeStart)); 586elementOwner, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (6)
570elementOwner, ElementEdge.BeforeStart)); 586row.RowGroup, ElementEdge.BeforeStart)); 589row, ElementEdge.BeforeStart)); 616row, ElementEdge.AfterEnd)); 621row.RowGroup, ElementEdge.AfterEnd)); 628elementOwner, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
1746int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
512void ITextPointer.MoveToElementEdge(ElementEdge edge)
src\Framework\System\Windows\Controls\TextAdaptor.cs (3)
286pointer.MoveToElementEdge(alignToTop ? ElementEdge.AfterStart : ElementEdge.AfterEnd); 608position.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
504void ITextPointer.MoveToElementEdge(ElementEdge edge)
src\Framework\System\Windows\Documents\FixedElement.cs (1)
292pos.MoveToElementEdge(ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\FixedTextPointer.cs (5)
441void ITextPointer.MoveToElementEdge(ElementEdge edge) 454case ElementEdge.BeforeStart: 459case ElementEdge.AfterStart: 463case ElementEdge.BeforeEnd: 467case ElementEdge.AfterEnd:
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
963int childStartIndex = TextContainerHelper.GetCPFromEmbeddedObject(child, ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\ITextPointer.cs (1)
105void MoveToElementEdge(ElementEdge edge);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
272void ITextPointer.MoveToElementEdge(ElementEdge edge)
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (1)
146_navigator.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\SplayTreeNode.cs (5)
356internal void InsertAtNode(SplayTreeNode positionNode, ElementEdge edge) 361if (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd) 364InsertAtNode(positionNode, edge == ElementEdge.BeforeStart /* insertBefore */); 370if (edge == ElementEdge.AfterStart)
src\Framework\System\Windows\Documents\TextContainer.cs (65)
486ElementEdge edge; 501ElementEdge edge; 525ElementEdge edge; 637ElementEdge edge; 650edge = (direction == LogicalDirection.Backward) ? ElementEdge.AfterStart : ElementEdge.BeforeEnd; 661edge = (direction == LogicalDirection.Backward) ? ElementEdge.BeforeStart : ElementEdge.AfterEnd; 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) 1133startEdgePosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart); 1141endEdgePosition = new TextPointer(this, elementNode, ElementEdge.BeforeEnd); 1228insertPosition = new TextPointer(this, objectNode, ElementEdge.BeforeStart); 1295internal void GetNodeAndEdgeAtOffset(int offset, out SplayTreeNode node, out ElementEdge edge) 1302internal void GetNodeAndEdgeAtOffset(int offset, bool splitNode, out SplayTreeNode node, out ElementEdge edge) 1337edge = ElementEdge.BeforeStart; 1345edge = ElementEdge.AfterStart; 1350edge = ElementEdge.BeforeEnd; 1356edge = ElementEdge.AfterEnd; 1370node = ((TextTreeTextNode)node).Split(offset - nodeOffset, ElementEdge.AfterEnd); 1372edge = ElementEdge.BeforeStart; 1394internal void GetNodeAndEdgeAtCharOffset(int charOffset, out TextTreeNode node, out ElementEdge edge) 1408edge = ElementEdge.BeforeStart; 1435edge = ElementEdge.BeforeStart; 1440edge = ElementEdge.AfterStart; 1449edge = ElementEdge.BeforeStart; 1455edge = ElementEdge.AfterEnd; 1468node = ((TextTreeTextNode)node).Split(charOffset - nodeCharOffset, ElementEdge.AfterEnd); 1469edge = ElementEdge.BeforeStart; 1655startPosition = new TextPointer(this, _rootNode, ElementEdge.AfterStart, LogicalDirection.Backward); 1686endPosition = new TextPointer(this, _rootNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 2168private SplayTreeNode AdjustForZeroWidthNode(SplayTreeNode node, ElementEdge edge) 2214else if (edge == ElementEdge.BeforeStart) 2319ElementEdge previousEdge; 2321ElementEdge nextEdge; 2350previousEdge = ElementEdge.AfterEnd; 2355previousEdge = ElementEdge.AfterStart; 2360nextEdge = ElementEdge.BeforeStart; 2365nextEdge = ElementEdge.BeforeEnd; 2545private void AdjustRefCountsForContentDelete(ref TextTreeNode previousNode, ElementEdge previousEdge, 2546ref TextTreeNode nextNode, ElementEdge nextEdge, 2600private void AdjustRefCountsForShallowDelete(ref TextTreeNode previousNode, ElementEdge previousEdge, 2601ref TextTreeNode nextNode,ElementEdge nextEdge, 2611firstContainedNode = firstContainedNode.IncrementReferenceCount(ElementEdge.BeforeStart, extractedElementNode.BeforeStartReferenceCount); 2620lastContainedNode = lastContainedNode.IncrementReferenceCount(ElementEdge.AfterEnd, extractedElementNode.AfterEndReferenceCount); 2649case ElementEdge.BeforeStart: 2653case ElementEdge.AfterStart: 2657case ElementEdge.BeforeEnd: 2663case ElementEdge.AfterEnd: 2671case ElementEdge.BeforeStart: 2675case ElementEdge.AfterStart: 2681case ElementEdge.BeforeEnd: 2685case ElementEdge.AfterEnd: 2808startPosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart, LogicalDirection.Backward); 2813endPosition = new TextPointer(this, elementNode, ElementEdge.AfterEnd, LogicalDirection.Backward); 2991ElementEdge previousEdge; 2993ElementEdge nextEdge; 3003previousEdge = ElementEdge.AfterEnd; 3007previousEdge = ElementEdge.AfterStart; 3010nextEdge = ElementEdge.BeforeStart; 3014nextEdge = ElementEdge.BeforeEnd; 3452TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart); 3464TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart);
src\Framework\System\windows\Documents\TextEditorSelection.cs (4)
137lineStart.MoveToElementEdge(ElementEdge.AfterStart); 139lineEnd.MoveToElementEdge(ElementEdge.BeforeEnd); 2050position.MoveToElementEdge(ElementEdge.AfterEnd); 2453navigator.MoveToElementEdge(ElementEdge.BeforeStart);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
886navigator.MoveToElementEdge(ElementEdge.BeforeStart); 897navigator.MoveToElementEdge(ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\TextElement.cs (9)
308TextPointer contentStart = new TextPointer(tree, _textElementNode, ElementEdge.AfterStart, LogicalDirection.Backward); 311TextPointer contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 334elementStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward); 367contentStart = new TextPointer(tree, _textElementNode, ElementEdge.AfterStart, LogicalDirection.Backward); 400contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 441elementEnd = new TextPointer(tree, _textElementNode, ElementEdge.AfterEnd, LogicalDirection.Backward); 1054beforeStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward); 1564tree.InsertTextInternal(new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd), textData); 1601position = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd);
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (1)
150_navigator.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\TextPointer.cs (143)
299ElementEdge edge; 312internal TextPointer(TextContainer tree, TextTreeNode node, ElementEdge edge) 318internal TextPointer(TextContainer tree, TextTreeNode node, ElementEdge edge, LogicalDirection direction) 1833internal static DependencyObject GetAdjacentElement(TextTreeNode node, ElementEdge edge, LogicalDirection direction) 1913ElementEdge edge; 1992ElementEdge edge; 2209ElementEdge edge; 2226case ElementEdge.BeforeStart: 2231edge = ElementEdge.AfterEnd; 2238edge = ElementEdge.AfterStart; 2242case ElementEdge.AfterStart: 2247edge = ElementEdge.BeforeStart; 2253edge = ElementEdge.BeforeEnd; 2258case ElementEdge.BeforeEnd: 2263edge = ElementEdge.AfterEnd; 2269edge = ElementEdge.AfterStart; 2273case ElementEdge.AfterEnd: 2278edge = ElementEdge.BeforeStart; 2285edge = ElementEdge.BeforeEnd; 2643void ITextPointer.MoveToElementEdge(ElementEdge edge) 2648internal void MoveToElementEdge(ElementEdge edge) 2848internal static TextTreeTextNode GetAdjacentTextNodeSibling(TextTreeNode node, ElementEdge edge, LogicalDirection direction) 2876internal static TextTreeNode GetAdjacentSiblingNode(TextTreeNode node, ElementEdge edge, LogicalDirection direction) 2884case ElementEdge.BeforeStart: 2888case ElementEdge.AfterStart: 2892case ElementEdge.BeforeEnd: 2897case ElementEdge.AfterEnd: 2906case ElementEdge.BeforeStart: 2910case ElementEdge.AfterStart: 2915case ElementEdge.BeforeEnd: 2919case ElementEdge.AfterEnd: 2937internal static int GetSymbolOffset(TextContainer tree, TextTreeNode node, ElementEdge edge) 2943case ElementEdge.BeforeStart: 2947case ElementEdge.AfterStart: 2951case ElementEdge.BeforeEnd: 2955case ElementEdge.AfterEnd: 2985ElementEdge edge; 3038if (edge == ElementEdge.BeforeStart && fixup.FirstContainedNode != null) 3046Invariant.Assert(edge == ElementEdge.BeforeStart, "edge BeforeStart is expected"); 3056if (edge == ElementEdge.AfterEnd && fixup.LastContainedNode != null) 3064Invariant.Assert(edge == ElementEdge.AfterEnd, "edge AfterEnd is expected"); 3092internal static TextTreeNode GetScopingNode(TextTreeNode node, ElementEdge edge) 3098case ElementEdge.BeforeStart: 3099case ElementEdge.AfterEnd: 3103case ElementEdge.AfterStart: 3104case ElementEdge.BeforeEnd: 3119internal bool GetNextNodeAndEdge(out TextTreeNode node, out ElementEdge edge) 3129internal static bool GetNextNodeAndEdge(TextTreeNode sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out TextTreeNode node, out ElementEdge edge) 3154case ElementEdge.BeforeStart: 3164edge = ElementEdge.BeforeEnd; 3170edge = ElementEdge.BeforeEnd; 3171goto case ElementEdge.BeforeEnd; 3175case ElementEdge.AfterStart: 3182edge = ElementEdge.AfterStart; 3188edge = ElementEdge.AfterEnd; 3195edge = ElementEdge.AfterEnd; 3204case ElementEdge.BeforeEnd: 3210edge = ElementEdge.BeforeStart; 3219case ElementEdge.AfterEnd: 3229edge = ElementEdge.AfterStart; 3265if (edge == ElementEdge.BeforeStart) 3267edge = ElementEdge.BeforeEnd; 3273Invariant.Assert(edge == ElementEdge.AfterEnd); 3289internal bool GetPreviousNodeAndEdge(out TextTreeNode node, out ElementEdge edge) 3299internal static bool GetPreviousNodeAndEdge(TextTreeNode sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out TextTreeNode node, out ElementEdge edge) 3323case ElementEdge.BeforeStart: 3331edge = ElementEdge.BeforeEnd; 3352case ElementEdge.AfterStart: 3359edge = ElementEdge.AfterEnd; 3368case ElementEdge.BeforeEnd: 3375edge = ElementEdge.BeforeEnd; 3381edge = ElementEdge.BeforeStart; 3388edge = ElementEdge.BeforeStart; 3397case ElementEdge.AfterEnd: 3407edge = ElementEdge.AfterStart; 3413edge = ElementEdge.AfterStart; 3414goto case ElementEdge.AfterStart; 3434if (edge == ElementEdge.AfterEnd) 3436edge = ElementEdge.AfterStart; 3442Invariant.Assert(edge == ElementEdge.BeforeStart); 3458internal static TextPointerContext GetPointerContextForward(TextTreeNode node, ElementEdge edge) 3466case ElementEdge.BeforeStart: 3470case ElementEdge.AfterStart: 3478goto case ElementEdge.BeforeEnd; 3482case ElementEdge.BeforeEnd: 3488case ElementEdge.AfterEnd: 3512internal static TextPointerContext GetPointerContextBackward(TextTreeNode node, ElementEdge edge) 3520case ElementEdge.BeforeStart: 3534case ElementEdge.AfterStart: 3540case ElementEdge.BeforeEnd: 3548goto case ElementEdge.AfterStart; 3552case ElementEdge.AfterEnd: 3777case ElementEdge.BeforeStart: 3781case ElementEdge.AfterStart: 3791case ElementEdge.BeforeEnd: 3792case ElementEdge.AfterEnd: 3881internal ElementEdge Edge 3885return (ElementEdge)(_flags & (uint)Flags.EdgeMask); 3922ElementEdge edge; 3956private void Initialize(TextContainer tree, TextTreeNode node, ElementEdge edge, LogicalDirection gravity, uint generation, 3993private TextTreeNode AdjustRefCounts(TextTreeNode newNode, ElementEdge newNodeEdge, TextTreeNode oldNode, ElementEdge oldNodeEdge) 4016private static void RepositionForGravity(ref TextTreeNode node, ref ElementEdge edge, LogicalDirection gravity) 4019ElementEdge newEdge; 4026case ElementEdge.BeforeStart: 4030newEdge = ElementEdge.AfterEnd; 4034newEdge = ElementEdge.AfterStart; 4039case ElementEdge.AfterStart: 4043newEdge = ElementEdge.BeforeStart; 4047newEdge = ElementEdge.BeforeEnd; 4052case ElementEdge.BeforeEnd: 4056newEdge = ElementEdge.AfterEnd; 4060newEdge = ElementEdge.AfterStart; 4065case ElementEdge.AfterEnd: 4069newEdge = ElementEdge.BeforeStart; 4073newEdge = ElementEdge.BeforeEnd; 4086return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4104internal static TextTreeNode GetAdjacentNode(TextTreeNode node, ElementEdge edge, LogicalDirection direction) 4113if (edge == ElementEdge.AfterStart || edge == ElementEdge.BeforeEnd) 4128private void MoveToNode(TextContainer tree, TextTreeNode node, ElementEdge 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!"); 4285private void SetNodeAndEdge(TextTreeNode node, ElementEdge edge) 4287Invariant.Assert(edge == ElementEdge.BeforeStart || 4288edge == ElementEdge.AfterStart || 4289edge == ElementEdge.BeforeEnd || 4290edge == ElementEdge.AfterEnd); 4311ElementEdge edge = (ElementEdge)(_flags & (uint)Flags.EdgeMask); 4313Invariant.Assert(edge == ElementEdge.BeforeStart || 4314edge == ElementEdge.AfterStart || 4315edge == ElementEdge.BeforeEnd || 4316edge == ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\TextPointerBase.cs (3)
295navigator.MoveToElementEdge(ElementEdge.BeforeStart); 345navigator.MoveToElementEdge(ElementEdge.AfterEnd); 350navigator.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\TextRangeBase.cs (5)
505position.MoveToElementEdge(ElementEdge.AfterEnd); 536startNavigator.MoveToElementEdge(ElementEdge.AfterEnd); 540endNavigator.MoveToElementEdge(ElementEdge.AfterEnd); 775navigator.MoveToElementEdge(ElementEdge.BeforeStart); 778navigator.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (6)
1586ElementEdge edgeBeforeElement; 1587ElementEdge edgeAfterElement; 1594edgeBeforeElement = ElementEdge.BeforeStart; 1595edgeAfterElement = ElementEdge.AfterEnd; 1603edgeBeforeElement = ElementEdge.AfterEnd; 1604edgeAfterElement = ElementEdge.BeforeStart;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (19)
256ptr.MoveToElementEdge(ElementEdge.BeforeEnd); 290endPointer.MoveToElementEdge(ElementEdge.BeforeEnd); // 369pointer.MoveToElementEdge(ElementEdge.BeforeStart); 372pointer.MoveToElementEdge(ElementEdge.BeforeStart); 440previousLevel.MoveToElementEdge(ElementEdge.BeforeStart); 458position.MoveToElementEdge(ElementEdge.BeforeStart); 477position.MoveToElementEdge(ElementEdge.BeforeStart); 501position.MoveToElementEdge(ElementEdge.BeforeEnd); 783outerContext.MoveToElementEdge(ElementEdge.BeforeStart); 883parentContext.MoveToElementEdge(ElementEdge.BeforeStart); 1705runningEnd.MoveToElementEdge(ElementEdge.AfterEnd); 1714commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1719commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1724commonAncestor.MoveToElementEdge(ElementEdge.AfterStart); 1769navigator.MoveToElementEdge(ElementEdge.BeforeStart); 1881elementEnd.MoveToElementEdge(ElementEdge.AfterEnd); 1914hyperlinkEnd.MoveToElementEdge(ElementEdge.AfterEnd); 1952hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart); 1954hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\TextStore.cs (1)
3105navigator.MoveToElementEdge(ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\TextTreeFixupNode.cs (8)
37internal TextTreeFixupNode(TextTreeNode previousNode, ElementEdge previousEdge, TextTreeNode nextNode, ElementEdge nextEdge) : 48internal TextTreeFixupNode(TextTreeNode previousNode, ElementEdge previousEdge, TextTreeNode nextNode, ElementEdge nextEdge, 338internal ElementEdge PreviousEdge 358internal ElementEdge NextEdge 418private readonly ElementEdge _previousEdge; 424private readonly ElementEdge _nextEdge;
src\Framework\System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
67end = new TextPointer(this.TextContainer, element.TextElementNode, ElementEdge.AfterEnd);
src\Framework\System\Windows\Documents\TextTreeNode.cs (22)
383internal TextTreeNode IncrementReferenceCount(ElementEdge edge) 388internal virtual TextTreeNode IncrementReferenceCount(ElementEdge edge, bool delta) 400internal virtual TextTreeNode IncrementReferenceCount(ElementEdge edge, int delta) 408case ElementEdge.BeforeStart: 412case ElementEdge.AfterStart: 416case ElementEdge.BeforeEnd: 420case ElementEdge.AfterEnd: 438internal virtual void DecrementReferenceCount(ElementEdge edge) 476internal ElementEdge GetEdgeFromOffsetNoBias(int nodeOffset) 481internal ElementEdge GetEdgeFromOffset(int nodeOffset, LogicalDirection bias) 483ElementEdge edge; 490edge = (bias == LogicalDirection.Forward) ? ElementEdge.AfterEnd : ElementEdge.BeforeStart; 494edge = ElementEdge.BeforeStart; 498edge = ElementEdge.AfterEnd; 502edge = ElementEdge.AfterStart; 507edge = ElementEdge.BeforeEnd; 513internal int GetOffsetFromEdge(ElementEdge edge) 519case ElementEdge.BeforeStart: 523case ElementEdge.AfterStart: 527case ElementEdge.BeforeEnd: 531case ElementEdge.AfterEnd:
src\Framework\System\Windows\Documents\TextTreeObjectNode.cs (5)
244return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 250_edgeReferenceCounts |= ElementEdge.BeforeStart; 292return (_edgeReferenceCounts & ElementEdge.AfterEnd) != 0; 298_edgeReferenceCounts |= ElementEdge.AfterEnd; 347private ElementEdge _edgeReferenceCounts;
src\Framework\System\Windows\Documents\TextTreeRootTextBlock.cs (1)
35block.InsertAtNode(this, ElementEdge.AfterStart);
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (9)
251return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 257_edgeReferenceCounts |= ElementEdge.BeforeStart; 268return (_edgeReferenceCounts & ElementEdge.AfterStart) != 0; 274_edgeReferenceCounts |= ElementEdge.AfterStart; 285return (_edgeReferenceCounts & ElementEdge.BeforeEnd) != 0; 291_edgeReferenceCounts |= ElementEdge.BeforeEnd; 302return (_edgeReferenceCounts & ElementEdge.AfterEnd) != 0; 308_edgeReferenceCounts |= ElementEdge.AfterEnd; 395private ElementEdge _edgeReferenceCounts;
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (21)
113internal override TextTreeNode IncrementReferenceCount(ElementEdge edge, int delta) 119Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge ref to TextTreeTextNode!"); 129node = Split(edge == ElementEdge.BeforeStart ? 0 : _symbolCount, edge); 142if (edge == ElementEdge.BeforeStart) 176internal override void DecrementReferenceCount(ElementEdge edge) 195internal TextTreeTextNode Split(int localOffset, ElementEdge edge) 199ElementEdge newNodeEdge; 203Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge parameter!"); 237if (_positionRefCount > 0 && _referencedEdge == ElementEdge.BeforeStart) 245newNodeEdge = ElementEdge.AfterEnd; 247edgeNode = (edge == ElementEdge.BeforeStart) ? this : newNode; 258newNodeEdge = ElementEdge.BeforeStart; 260edgeNode = (edge == ElementEdge.BeforeStart) ? newNode : this; 429return _referencedEdge == ElementEdge.BeforeStart ? _positionRefCount > 0 : false; 473return _referencedEdge == ElementEdge.AfterEnd ? _positionRefCount > 0 : false; 505(previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart)) 527(nextNode._positionRefCount == 0 || (nextNode._referencedEdge == ElementEdge.AfterEnd))) 542else if ((previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart) && 602private ElementEdge _referencedEdge;
src\Framework\System\Windows\Documents\ValidationHelper.cs (6)
89internal static void VerifyElementEdge(ElementEdge edge, string param) 91if (edge != ElementEdge.BeforeStart && 92edge != ElementEdge.AfterStart && 93edge != ElementEdge.BeforeEnd && 94edge != ElementEdge.AfterEnd) 96throw new InvalidEnumArgumentException(param, (int)edge, typeof(ElementEdge));