113 references to BeforeStart
PresentationFramework (113)
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
162TextPointer startPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.BeforeStart, LogicalDirection.Backward);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (7)
408position.MoveToElementEdge(ElementEdge.BeforeStart); 451position.MoveToElementEdge(ElementEdge.BeforeStart); 523Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd); 651case ElementEdge.BeforeStart: 676cp = (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterStart) ? 0 : textContainer.SymbolCount; 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 (2)
186int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 261return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart);
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 (1)
353elementOwner, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
379TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (1)
598Paragraph.Element as TextElement, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (1)
603Paragraph.Element as TextElement, ElementEdge.BeforeStart));
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 (1)
578elementOwner, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (3)
570elementOwner, ElementEdge.BeforeStart)); 586row.RowGroup, ElementEdge.BeforeStart)); 589row, ElementEdge.BeforeStart));
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
454case ElementEdge.BeforeStart:
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
963int childStartIndex = TextContainerHelper.GetCPFromEmbeddedObject(child, ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\SplayTreeNode.cs (2)
361if (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd) 364InsertAtNode(positionNode, edge == ElementEdge.BeforeStart /* insertBefore */);
src\Framework\System\Windows\Documents\TextContainer.cs (20)
661edge = (direction == LogicalDirection.Backward) ? ElementEdge.BeforeStart : ElementEdge.AfterEnd; 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); 1228insertPosition = new TextPointer(this, objectNode, ElementEdge.BeforeStart); 1337edge = ElementEdge.BeforeStart; 1372edge = ElementEdge.BeforeStart; 1408edge = ElementEdge.BeforeStart; 1435edge = ElementEdge.BeforeStart; 1449edge = ElementEdge.BeforeStart; 1469edge = ElementEdge.BeforeStart; 2214else if (edge == ElementEdge.BeforeStart) 2360nextEdge = ElementEdge.BeforeStart; 2611firstContainedNode = firstContainedNode.IncrementReferenceCount(ElementEdge.BeforeStart, extractedElementNode.BeforeStartReferenceCount); 2649case ElementEdge.BeforeStart: 2671case ElementEdge.BeforeStart: 2808startPosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart, LogicalDirection.Backward); 3010nextEdge = ElementEdge.BeforeStart; 3452TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart); 3464TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart);
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
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 (2)
334elementStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward); 1054beforeStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward);
src\Framework\System\Windows\Documents\TextPointer.cs (27)
2226case ElementEdge.BeforeStart: 2247edge = ElementEdge.BeforeStart; 2278edge = ElementEdge.BeforeStart; 2884case ElementEdge.BeforeStart: 2906case ElementEdge.BeforeStart: 2943case ElementEdge.BeforeStart: 3038if (edge == ElementEdge.BeforeStart && fixup.FirstContainedNode != null) 3046Invariant.Assert(edge == ElementEdge.BeforeStart, "edge BeforeStart is expected"); 3098case ElementEdge.BeforeStart: 3154case ElementEdge.BeforeStart: 3210edge = ElementEdge.BeforeStart; 3265if (edge == ElementEdge.BeforeStart) 3323case ElementEdge.BeforeStart: 3381edge = ElementEdge.BeforeStart; 3388edge = ElementEdge.BeforeStart; 3442Invariant.Assert(edge == ElementEdge.BeforeStart); 3466case ElementEdge.BeforeStart: 3520case ElementEdge.BeforeStart: 3777case ElementEdge.BeforeStart: 4026case ElementEdge.BeforeStart: 4043newEdge = ElementEdge.BeforeStart; 4069newEdge = ElementEdge.BeforeStart; 4086return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4170Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)"); 4181Invariant.Assert(this.Edge != ElementEdge.BeforeStart && this.Edge != ElementEdge.AfterEnd, "Position at outer edge of root!"); 4287Invariant.Assert(edge == ElementEdge.BeforeStart || 4313Invariant.Assert(edge == ElementEdge.BeforeStart ||
src\Framework\System\Windows\Documents\TextPointerBase.cs (1)
295navigator.MoveToElementEdge(ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
775navigator.MoveToElementEdge(ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (2)
1594edgeBeforeElement = ElementEdge.BeforeStart; 1604edgeAfterElement = ElementEdge.BeforeStart;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (12)
369pointer.MoveToElementEdge(ElementEdge.BeforeStart); 372pointer.MoveToElementEdge(ElementEdge.BeforeStart); 440previousLevel.MoveToElementEdge(ElementEdge.BeforeStart); 458position.MoveToElementEdge(ElementEdge.BeforeStart); 477position.MoveToElementEdge(ElementEdge.BeforeStart); 783outerContext.MoveToElementEdge(ElementEdge.BeforeStart); 883parentContext.MoveToElementEdge(ElementEdge.BeforeStart); 1714commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1719commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1769navigator.MoveToElementEdge(ElementEdge.BeforeStart); 1952hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart); 1954hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart);
src\Framework\System\Windows\Documents\TextTreeNode.cs (4)
408case ElementEdge.BeforeStart: 490edge = (bias == LogicalDirection.Forward) ? ElementEdge.AfterEnd : ElementEdge.BeforeStart; 494edge = ElementEdge.BeforeStart; 519case ElementEdge.BeforeStart:
src\Framework\System\Windows\Documents\TextTreeObjectNode.cs (2)
244return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 250_edgeReferenceCounts |= ElementEdge.BeforeStart;
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (2)
251return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 257_edgeReferenceCounts |= ElementEdge.BeforeStart;
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (11)
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) 203Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge parameter!"); 237if (_positionRefCount > 0 && _referencedEdge == ElementEdge.BeforeStart) 247edgeNode = (edge == ElementEdge.BeforeStart) ? this : newNode; 258newNodeEdge = ElementEdge.BeforeStart; 260edgeNode = (edge == ElementEdge.BeforeStart) ? newNode : this; 429return _referencedEdge == ElementEdge.BeforeStart ? _positionRefCount > 0 : false; 505(previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart)) 542else if ((previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart) &&
src\Framework\System\Windows\Documents\ValidationHelper.cs (1)
91if (edge != ElementEdge.BeforeStart &&