114 references to BeforeStart
PresentationFramework (114)
MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
153TextPointer startPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.BeforeStart, LogicalDirection.Backward);
MS\Internal\Documents\TextContainerHelper.cs (7)
400position.MoveToElementEdge(ElementEdge.BeforeStart); 443position.MoveToElementEdge(ElementEdge.BeforeStart); 515Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd); 643case ElementEdge.BeforeStart: 668cp = (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterStart) ? 0 : textContainer.SymbolCount; 701Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Cannot retrieve CP from the content of embedded object."); 710cp = (edge == ElementEdge.BeforeStart) ? uiContainer.ContentStartOffset : uiContainer.ContentEndOffset;
MS\Internal\PtsHost\BaseParagraph.cs (2)
180int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 255return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart);
MS\Internal\PtsHost\CellParaClient.cs (2)
157CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 226CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (1)
300elementOwner, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParagraph.cs (1)
369TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
MS\Internal\PtsHost\FigureParaClient.cs (1)
533Paragraph.Element as TextElement, ElementEdge.BeforeStart));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
541Paragraph.Element as TextElement, ElementEdge.BeforeStart));
MS\Internal\PtsHost\Line.cs (1)
124int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
MS\Internal\PtsHost\SubpageParaClient.cs (1)
514elementOwner, ElementEdge.BeforeStart));
MS\Internal\PtsHost\TableParaClient.cs (3)
521elementOwner, ElementEdge.BeforeStart)); 537row.RowGroup, ElementEdge.BeforeStart)); 540row, ElementEdge.BeforeStart));
System\Windows\Documents\FixedTextPointer.cs (1)
434case ElementEdge.BeforeStart:
System\Windows\Documents\FlowDocument.cs (1)
955int childStartIndex = TextContainerHelper.GetCPFromEmbeddedObject(child, ElementEdge.BeforeStart);
System\Windows\Documents\SplayTreeNode.cs (2)
360if (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd) 363InsertAtNode(positionNode, edge == ElementEdge.BeforeStart /* insertBefore */);
System\Windows\Documents\TextContainer.cs (20)
641edge = (direction == LogicalDirection.Backward) ? ElementEdge.BeforeStart : ElementEdge.AfterEnd; 850(position.Edge == ElementEdge.BeforeStart && position.Node.GetNextNode() is TextTreeTextNode && position.Node.GetNextNode().SymbolCount > 0)); 868if (position.Edge == ElementEdge.BeforeStart || position.Edge == ElementEdge.BeforeEnd) 1113startEdgePosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart); 1208insertPosition = new TextPointer(this, objectNode, ElementEdge.BeforeStart); 1317edge = ElementEdge.BeforeStart; 1352edge = ElementEdge.BeforeStart; 1388edge = ElementEdge.BeforeStart; 1415edge = ElementEdge.BeforeStart; 1429edge = ElementEdge.BeforeStart; 1449edge = ElementEdge.BeforeStart; 2194else if (edge == ElementEdge.BeforeStart) 2340nextEdge = ElementEdge.BeforeStart; 2591firstContainedNode = firstContainedNode.IncrementReferenceCount(ElementEdge.BeforeStart, extractedElementNode.BeforeStartReferenceCount); 2629case ElementEdge.BeforeStart: 2651case ElementEdge.BeforeStart: 2788startPosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart, LogicalDirection.Backward); 2989nextEdge = ElementEdge.BeforeStart; 3431TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart); 3443TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart);
System\windows\Documents\TextEditorSelection.cs (1)
2429navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\windows\Documents\TextEditorTyping.cs (2)
860navigator.MoveToElementEdge(ElementEdge.BeforeStart); 871navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextElement.cs (2)
328elementStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward); 1008beforeStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward);
System\Windows\Documents\TextPointer.cs (27)
2201case ElementEdge.BeforeStart: 2222edge = ElementEdge.BeforeStart; 2253edge = ElementEdge.BeforeStart; 2853case ElementEdge.BeforeStart: 2875case ElementEdge.BeforeStart: 2912case ElementEdge.BeforeStart: 3007if (edge == ElementEdge.BeforeStart && fixup.FirstContainedNode != null) 3015Invariant.Assert(edge == ElementEdge.BeforeStart, "edge BeforeStart is expected"); 3067case ElementEdge.BeforeStart: 3123case ElementEdge.BeforeStart: 3179edge = ElementEdge.BeforeStart; 3234if (edge == ElementEdge.BeforeStart) 3292case ElementEdge.BeforeStart: 3350edge = ElementEdge.BeforeStart; 3357edge = ElementEdge.BeforeStart; 3411Invariant.Assert(edge == ElementEdge.BeforeStart); 3435case ElementEdge.BeforeStart: 3489case ElementEdge.BeforeStart: 3746case ElementEdge.BeforeStart: 3995case ElementEdge.BeforeStart: 4012newEdge = ElementEdge.BeforeStart; 4038newEdge = ElementEdge.BeforeStart; 4055return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4139Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)"); 4150Invariant.Assert(this.Edge != ElementEdge.BeforeStart && this.Edge != ElementEdge.AfterEnd, "Position at outer edge of root!"); 4256Invariant.Assert(edge == ElementEdge.BeforeStart || 4282Invariant.Assert(edge == ElementEdge.BeforeStart ||
System\Windows\Documents\TextPointerBase.cs (1)
291navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextRangeBase.cs (1)
761navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextRangeEdit.cs (2)
1590edgeBeforeElement = ElementEdge.BeforeStart; 1600edgeAfterElement = ElementEdge.BeforeStart;
System\Windows\Documents\TextRangeSerialization.cs (12)
357pointer.MoveToElementEdge(ElementEdge.BeforeStart); 360pointer.MoveToElementEdge(ElementEdge.BeforeStart); 428previousLevel.MoveToElementEdge(ElementEdge.BeforeStart); 446position.MoveToElementEdge(ElementEdge.BeforeStart); 465position.MoveToElementEdge(ElementEdge.BeforeStart); 771outerContext.MoveToElementEdge(ElementEdge.BeforeStart); 871parentContext.MoveToElementEdge(ElementEdge.BeforeStart); 1688commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1693commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1743navigator.MoveToElementEdge(ElementEdge.BeforeStart); 1926hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart); 1928hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextTreeNode.cs (4)
401case ElementEdge.BeforeStart: 483edge = (bias == LogicalDirection.Forward) ? ElementEdge.AfterEnd : ElementEdge.BeforeStart; 487edge = ElementEdge.BeforeStart; 512case ElementEdge.BeforeStart:
System\Windows\Documents\TextTreeObjectNode.cs (2)
237return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 243_edgeReferenceCounts |= ElementEdge.BeforeStart;
System\Windows\Documents\TextTreeTextElementNode.cs (2)
244return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 250_edgeReferenceCounts |= ElementEdge.BeforeStart;
System\Windows\Documents\TextTreeTextNode.cs (12)
112Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge ref to TextTreeTextNode!"); 122node = Split(edge == ElementEdge.BeforeStart ? 0 : _symbolCount, edge); 135if (edge == ElementEdge.BeforeStart) 196Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge parameter!"); 203Invariant.Assert(edge == ElementEdge.BeforeStart, "Unexpected edge!"); 230if (_positionRefCount > 0 && _referencedEdge == ElementEdge.BeforeStart) 240edgeNode = (edge == ElementEdge.BeforeStart) ? this : newNode; 251newNodeEdge = ElementEdge.BeforeStart; 253edgeNode = (edge == ElementEdge.BeforeStart) ? newNode : this; 422return _referencedEdge == ElementEdge.BeforeStart ? _positionRefCount > 0 : false; 498(previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart)) 535else if ((previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart) &&
System\Windows\Documents\ValidationHelper.cs (1)
81if (edge != ElementEdge.BeforeStart &&