114 references to BeforeStart
PresentationFramework (114)
MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
157TextPointer startPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.BeforeStart, LogicalDirection.Backward);
MS\Internal\Documents\TextContainerHelper.cs (7)
403position.MoveToElementEdge(ElementEdge.BeforeStart); 446position.MoveToElementEdge(ElementEdge.BeforeStart); 518Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd); 646case ElementEdge.BeforeStart: 671cp = (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterStart) ? 0 : textContainer.SymbolCount; 704Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Cannot retrieve CP from the content of embedded object."); 713cp = (edge == ElementEdge.BeforeStart) ? uiContainer.ContentStartOffset : uiContainer.ContentEndOffset;
MS\Internal\PtsHost\BaseParagraph.cs (2)
182int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 257return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart);
MS\Internal\PtsHost\CellParaClient.cs (2)
162CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 231CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (1)
305elementOwner, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParagraph.cs (1)
374TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
MS\Internal\PtsHost\FigureParaClient.cs (1)
539Paragraph.Element as TextElement, ElementEdge.BeforeStart));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
546Paragraph.Element as TextElement, ElementEdge.BeforeStart));
MS\Internal\PtsHost\Line.cs (1)
130int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
MS\Internal\PtsHost\SubpageParaClient.cs (1)
519elementOwner, ElementEdge.BeforeStart));
MS\Internal\PtsHost\TableParaClient.cs (3)
527elementOwner, ElementEdge.BeforeStart)); 543row.RowGroup, ElementEdge.BeforeStart)); 546row, ElementEdge.BeforeStart));
System\Windows\Documents\FixedTextPointer.cs (1)
439case ElementEdge.BeforeStart:
System\Windows\Documents\FlowDocument.cs (1)
955int childStartIndex = TextContainerHelper.GetCPFromEmbeddedObject(child, ElementEdge.BeforeStart);
System\Windows\Documents\SplayTreeNode.cs (2)
361if (edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd) 364InsertAtNode(positionNode, edge == ElementEdge.BeforeStart /* insertBefore */);
System\Windows\Documents\TextContainer.cs (20)
646edge = (direction == LogicalDirection.Backward) ? ElementEdge.BeforeStart : ElementEdge.AfterEnd; 855(position.Edge == ElementEdge.BeforeStart && position.Node.GetNextNode() is TextTreeTextNode && position.Node.GetNextNode().SymbolCount > 0)); 873if (position.Edge == ElementEdge.BeforeStart || position.Edge == ElementEdge.BeforeEnd) 1118startEdgePosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart); 1213insertPosition = new TextPointer(this, objectNode, ElementEdge.BeforeStart); 1322edge = ElementEdge.BeforeStart; 1357edge = ElementEdge.BeforeStart; 1393edge = ElementEdge.BeforeStart; 1420edge = ElementEdge.BeforeStart; 1434edge = ElementEdge.BeforeStart; 1454edge = ElementEdge.BeforeStart; 2199else if (edge == ElementEdge.BeforeStart) 2345nextEdge = ElementEdge.BeforeStart; 2596firstContainedNode = firstContainedNode.IncrementReferenceCount(ElementEdge.BeforeStart, extractedElementNode.BeforeStartReferenceCount); 2634case ElementEdge.BeforeStart: 2656case ElementEdge.BeforeStart: 2793startPosition = new TextPointer(this, elementNode, ElementEdge.BeforeStart, LogicalDirection.Backward); 2994nextEdge = ElementEdge.BeforeStart; 3436TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart); 3448TextPointer startEdgePosition = new TextPointer(this, node, ElementEdge.BeforeStart);
System\windows\Documents\TextEditorSelection.cs (1)
2444navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\windows\Documents\TextEditorTyping.cs (2)
869navigator.MoveToElementEdge(ElementEdge.BeforeStart); 880navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextElement.cs (2)
329elementStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward); 1009beforeStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward);
System\Windows\Documents\TextPointer.cs (27)
2206case ElementEdge.BeforeStart: 2227edge = ElementEdge.BeforeStart; 2258edge = ElementEdge.BeforeStart; 2858case ElementEdge.BeforeStart: 2880case ElementEdge.BeforeStart: 2917case ElementEdge.BeforeStart: 3012if (edge == ElementEdge.BeforeStart && fixup.FirstContainedNode != null) 3020Invariant.Assert(edge == ElementEdge.BeforeStart, "edge BeforeStart is expected"); 3072case ElementEdge.BeforeStart: 3128case ElementEdge.BeforeStart: 3184edge = ElementEdge.BeforeStart; 3239if (edge == ElementEdge.BeforeStart) 3297case ElementEdge.BeforeStart: 3355edge = ElementEdge.BeforeStart; 3362edge = ElementEdge.BeforeStart; 3416Invariant.Assert(edge == ElementEdge.BeforeStart); 3440case ElementEdge.BeforeStart: 3494case ElementEdge.BeforeStart: 3751case ElementEdge.BeforeStart: 4000case ElementEdge.BeforeStart: 4017newEdge = ElementEdge.BeforeStart; 4043newEdge = ElementEdge.BeforeStart; 4060return (this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd) ? LogicalDirection.Forward : LogicalDirection.Backward; 4144Invariant.Assert(this.Edge == ElementEdge.BeforeStart || this.Edge == ElementEdge.BeforeEnd, "Bad position edge/gravity pair! (1)"); 4155Invariant.Assert(this.Edge != ElementEdge.BeforeStart && this.Edge != ElementEdge.AfterEnd, "Position at outer edge of root!"); 4261Invariant.Assert(edge == ElementEdge.BeforeStart || 4287Invariant.Assert(edge == ElementEdge.BeforeStart ||
System\Windows\Documents\TextPointerBase.cs (1)
293navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextRangeBase.cs (1)
764navigator.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextRangeEdit.cs (2)
1592edgeBeforeElement = ElementEdge.BeforeStart; 1602edgeAfterElement = ElementEdge.BeforeStart;
System\Windows\Documents\TextRangeSerialization.cs (12)
363pointer.MoveToElementEdge(ElementEdge.BeforeStart); 366pointer.MoveToElementEdge(ElementEdge.BeforeStart); 434previousLevel.MoveToElementEdge(ElementEdge.BeforeStart); 452position.MoveToElementEdge(ElementEdge.BeforeStart); 471position.MoveToElementEdge(ElementEdge.BeforeStart); 777outerContext.MoveToElementEdge(ElementEdge.BeforeStart); 877parentContext.MoveToElementEdge(ElementEdge.BeforeStart); 1694commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1699commonAncestor.MoveToElementEdge(ElementEdge.BeforeStart); 1749navigator.MoveToElementEdge(ElementEdge.BeforeStart); 1932hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart); 1934hyperlinkStart.MoveToElementEdge(ElementEdge.BeforeStart);
System\Windows\Documents\TextTreeNode.cs (4)
402case ElementEdge.BeforeStart: 484edge = (bias == LogicalDirection.Forward) ? ElementEdge.AfterEnd : ElementEdge.BeforeStart; 488edge = ElementEdge.BeforeStart; 513case ElementEdge.BeforeStart:
System\Windows\Documents\TextTreeObjectNode.cs (2)
238return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 244_edgeReferenceCounts |= ElementEdge.BeforeStart;
System\Windows\Documents\TextTreeTextElementNode.cs (2)
245return (_edgeReferenceCounts & ElementEdge.BeforeStart) != 0; 251_edgeReferenceCounts |= ElementEdge.BeforeStart;
System\Windows\Documents\TextTreeTextNode.cs (12)
113Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge ref to TextTreeTextNode!"); 123node = Split(edge == ElementEdge.BeforeStart ? 0 : _symbolCount, edge); 136if (edge == ElementEdge.BeforeStart) 197Invariant.Assert(edge == ElementEdge.BeforeStart || edge == ElementEdge.AfterEnd, "Bad edge parameter!"); 204Invariant.Assert(edge == ElementEdge.BeforeStart, "Unexpected edge!"); 231if (_positionRefCount > 0 && _referencedEdge == ElementEdge.BeforeStart) 241edgeNode = (edge == ElementEdge.BeforeStart) ? this : newNode; 252newNodeEdge = ElementEdge.BeforeStart; 254edgeNode = (edge == ElementEdge.BeforeStart) ? newNode : this; 423return _referencedEdge == ElementEdge.BeforeStart ? _positionRefCount > 0 : false; 499(previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart)) 536else if ((previousNode._positionRefCount == 0 || previousNode._referencedEdge == ElementEdge.BeforeStart) &&
System\Windows\Documents\ValidationHelper.cs (1)
83if (edge != ElementEdge.BeforeStart &&