66 references to ElementStart
PresentationFramework (66)
MS\Internal\Documents\TextDocumentView.cs (1)
3481if (textPointer.LogicalDirection == LogicalDirection.Forward && textPointer.CompareTo(textElement.ElementStart) == 0)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
937elementPosition = new TextPointer((e as TextElement).ElementStart);
MS\Internal\PtsHost\TextParagraph.cs (2)
982FigureObject figureObject = new FigureObject(textPointerContentStart.GetOffsetToPosition(textElement.ElementStart), figurePara); 1005FloaterObject floaterObject = new FloaterObject(textPointerContentStart.GetOffsetToPosition(textElement.ElementStart), floaterPara);
System\Windows\Controls\TextAdaptor.cs (1)
599rangeStart = ((TextElement)childElement).ElementStart;
System\Windows\Controls\TextBlock.cs (1)
3649position = new TextPointer((e as TextElement).ElementStart);
System\Windows\Documents\List.cs (5)
240this.Reposition(firstBlock.ElementStart, lastBlock.ElementEnd); 250listItem = block.ElementStart.GetAdjacentElement(LogicalDirection.Backward) as ListItem; 260listItem.Reposition(block.ElementStart, block.ElementEnd); 268listItem.Reposition(block.ElementStart, block.ElementEnd); 284TextRangeEdit.SetParagraphProperty(this.ElementStart, this.ElementEnd,
System\Windows\Documents\TextElement.cs (1)
253tree.DeleteContentInternal(this.ElementStart, this.ElementEnd);
System\Windows\Documents\TextElementCollection.cs (3)
301newItem.RepositionWithContent(nextSibling.ElementStart); 492position = atCollectionEnd ? this.ContentEnd : element.ElementStart; 577TextPointer position = (nextElement == null) ? this.ContentEnd : nextElement.ElementStart;
System\Windows\Documents\TextPointer.cs (1)
59/// <see cref="TextElement.ElementStart"/> and <see cref="TextElement.ElementEnd"/>,
System\Windows\Documents\TextPointerBase.cs (2)
168IsAtPotentialRunPosition(run.ElementStart, run.ElementEnd); 777paragraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart)
System\Windows\Documents\TextRange.cs (1)
1611this.Select(inlineUIContainer.ElementStart, inlineUIContainer.ElementEnd);
System\Windows\Documents\TextRangeBase.cs (2)
1858start = outerAnchoredBlock.ElementStart; 1893start = innerAnchoredBlock.ElementStart;
System\Windows\Documents\TextRangeEdit.cs (22)
70splitPosition.MoveToPosition(inline.ElementStart); 266position = ((Inline)position.Parent).ElementStart; 298firstInline.Reposition(firstInline.ElementStart, secondInline.ElementEnd); 330inline.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && 435TextPointer mergePosition = parent.ElementStart; 441newSpan.Reposition(parent.ElementStart, parent.ElementEnd); 442mergePosition = newSpan.ElementStart; 455MergeFormattingInlines(parent.ElementStart); 496object outerContextValue = ((ITextPointer)source.ElementStart).GetValue(nonFormattingCharacterProperties[i]); 541newElement = InsertElementClone(element.ElementStart, element.ElementStart, element); 543position.MoveToPosition(element.ElementStart); 550element.Reposition(element.ContentStart, newElement.ElementStart); 612position = position.IsAtNonMergeableInlineStart ? ancestor.ElementStart : ancestor.ElementEnd; 775start = listItem.List.ElementStart; 967TextPointer start = firstChild.ElementStart.GetFrozenPointer(LogicalDirection.Backward); 984span = new Span(firstChild.ElementStart, lastChild.ElementEnd); 1281position = ((Inline)position.Parent).ElementStart; 1334SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1759Span span = new Span(run.ElementStart, run.ElementEnd); 2050SplitFormattingElements(child.ElementStart, /*keepEmptyFormatting*/false, limit); 2228end = end.Paragraph.ElementStart;
System\Windows\Documents\TextRangeEditLists.cs (15)
76while (secondParagraphOrBlockUIContainer.ElementStart.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) 100TextElement previousBlock = secondParagraphOrBlockUIContainer.ElementStart.GetAdjacentElement(LogicalDirection.Backward) as TextElement; 130Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.CompareTo(secondParagraphOrBlockUIContainer.ElementStart) == 0); 134TextPointer inlineMergingPosition = secondParagraphOrBlockUIContainer.ElementStart; 228TextRangeEdit.SetParagraphProperty(precedingList.ElementStart, precedingList.ElementEnd, 311TextRangeEdit.SplitElement(block.ElementStart); 418List indentedList = (List)TextRangeEdit.InsertElementClone(firstListItem.ElementStart, lastListItem.ElementEnd, list); 431lastListItem.Reposition(lastListItem.ContentStart, nestedListOfLastItem.ElementStart); 437MergeLists(indentedList.ElementStart); 485TextRangeEdit.SplitElement(firstListItem.ElementStart); 511if (outerListItem.ContentStart.CompareTo(firstListItem.ElementStart) == 0) 519outerListItem.Reposition(outerListItem.ContentStart, firstListItem.ElementStart); 545TextPointer start = unindentedList.ElementStart; 631TextPointer startOfSecondParagraph = secondParagraphOrBlockUIContainer.ElementStart; 732TextRangeEdit.SplitElement(startListItem.ElementStart);
System\Windows\Documents\TextRangeEditTables.cs (3)
748? CreateImplicitParagraph(blockUIContainer.ElementStart) 859position = ((Inline)parent).ElementStart; 1050end = endRow.Table.ElementStart;
System\Windows\Documents\TextRangeSerialization.cs (4)
1283string fragmentText = TextRangeBase.GetTextInternal(fragment.ElementStart, fragment.ElementEnd); 1309fragmentStart = fragment.ElementStart; 1331fragmentStart = fragment.ElementStart; 1644TextRangeEdit.MergeFormattingInlines(element.ElementStart);
System\Windows\Documents\TextSchema.cs (1)
888TextPointer start = element.ElementStart;