75 references to ContentEnd
PresentationFramework (75)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
498end = textElement.ContentEnd;
MS\Internal\Documents\ContentHostHelper.cs (1)
121textView.Contains(contentElement.ContentEnd))
MS\Internal\Documents\TableTextElementCollectionInternal.cs (3)
49item.RepositionWithContent(Owner.ContentEnd); 116item.RepositionWithContent(Owner.ContentEnd); 325: new RangeContentEnumerator(Owner.ContentStart, Owner.ContentEnd);
MS\Internal\Documents\TextDocumentView.cs (4)
870position = blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward); 2361lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 2865positionOut = blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward); 3475if (textPointer.CompareTo(textElement.ContentEnd) == 0)
MS\Internal\PtsHost\TableParaClient.cs (3)
864if (startPosition.CompareTo(cpc.Cell.ContentEnd) <= 0) 921if(position.CompareTo(cpc.Cell.ContentStart) >= 0 && position.CompareTo(cpc.Cell.ContentEnd) <= 0) 1134if(((TextPointer)position).CompareTo(row.ContentEnd) == 0)
MS\Internal\PtsHost\TableParagraph.cs (1)
553StructuralCache.FormattingOwner.Formatter?.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
141if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 &&
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
39return TextContainerHelper.GetAutomationPeersFromRange(textElement.ContentStart, textElement.ContentEnd, null); 55Geometry geometry = textView.GetTightBoundingGeometryFromTextPositions(textElement.ContentStart, textElement.ContentEnd); 96if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 117if (endPosition == null || endPosition.CompareTo(textElement.ContentEnd) > 0) 118endPosition = textElement.ContentEnd; 150if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 155if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty)
System\Windows\Controls\ComboBox.cs (1)
1611strValue += TextRangeBase.GetTextInternal(textElement.ContentStart, textElement.ContentEnd);
System\Windows\Controls\DeferredRunTextReference.cs (1)
43return TextRangeBase.GetTextInternal(_run.ContentStart, _run.ContentEnd);
System\Windows\Controls\RichTextBox.cs (1)
479firstInline.ContentStart.CompareTo(firstInline.ContentEnd) == 0)
System\Windows\Controls\TextAdaptor.cs (1)
601rangeEnd = ((TextElement)parent).ContentEnd;
System\Windows\Documents\BlockUIContainer.cs (1)
86textContainer.DeleteContentInternal(contentStart, this.ContentEnd);
System\Windows\Documents\Hyperlink.cs (2)
100TextPointer stop = this.ContentEnd; 784return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
System\Windows\Documents\InlineUIContainer.cs (1)
110textContainer.DeleteContentInternal(contentStart, this.ContentEnd);
System\Windows\Documents\List.cs (1)
190while (textNav.CompareTo(this.ContentEnd) != 0)
System\Windows\Documents\Paragraph.cs (1)
248ITextPointer end = paragraph.ContentEnd;
System\Windows\Documents\Run.cs (1)
250textContainer.DeleteContentInternal(contentStart, run.ContentEnd);
System\windows\Documents\TextEditorTyping.cs (2)
1425This.Selection.Select(cell.ContentStart, cell.ContentEnd); 1477This.Selection.Select(cell.ContentStart, cell.ContentEnd);
System\Windows\Documents\TextElement.cs (2)
401return this.ContentStart.CompareTo(position) <= 0 && this.ContentEnd.CompareTo(position) >= 0; 904: new RangeContentEnumerator(this.ContentStart, this.ContentEnd);
System\Windows\Documents\TextElementCollection.cs (1)
972this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;
System\Windows\Documents\TextPointer.cs (1)
59/// <see cref="TextElement.ContentStart"/> and <see cref="TextElement.ContentEnd"/>, etc.
System\Windows\Documents\TextRange.cs (1)
1595this.Select(blockUIContainer.ContentStart, blockUIContainer.ContentEnd);
System\Windows\Documents\TextRangeBase.cs (1)
261thisRange.Select(cell.ContentStart, cell.ContentEnd);
System\Windows\Documents\TextRangeEdit.cs (9)
424if (parent is Span && parent.ContentEnd.CompareTo(end) > 0) 546newElement = InsertElementClone(position, element.ContentEnd, element); 806TextPointer contentEnd = block.ContentEnd; 1300previousPosition = ((Inline)previousPosition.GetAdjacentElement(LogicalDirection.Backward)).ContentEnd; 2178ClearPropertyValueFromSpansAndRuns(inline.ContentStart, inline.ContentEnd, formattingProperty); 2208ClearPropertyValueFromSpansAndRuns(span.ContentStart, span.ContentEnd, formattingProperty); 2217Invariant.Assert(start.Paragraph.ContentEnd.CompareTo(end) < 0); 2220SetStructuralInlineProperty(start, start.Paragraph.ContentEnd, formattingProperty, value); 2239SetStructuralInlineProperty(paragraph.ContentStart, paragraph.ContentEnd, formattingProperty, value);
System\Windows\Documents\TextRangeEditLists.cs (9)
58if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0) 64secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd); 81if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0) 89parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd); 376if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 510TextPointer outerListItemEnd = outerListItem.ContentEnd; 532TextPointer mergePosition = lastListItem.ContentEnd; 562if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 776adjustedEnd = list.ContentEnd;
System\Windows\Documents\TextRangeEditTables.cs (14)
380movingRow != null ? movingRow.ContentEnd : movingPosition)); 387anchorRow != null ? anchorRow.ContentEnd : anchorPosition)); 451movingPosition = anchorCell.ContentEnd.GetInsertionPosition(); 527movingPosition = movingCell.ContentEnd.GetInsertionPosition().GetNextInsertionPosition(LogicalDirection.Forward); 539movingPosition = anchorCell.Table.ContentEnd; 566return (direction == LogicalDirection.Forward) ? row.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward) : 598return (direction == LogicalDirection.Forward) ? row.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward) : 1025TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1043TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1056TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1208return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1995TextPointer end = endCell.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward); 1997Invariant.Assert(GetTableRowFromPosition(end) == GetTableRowFromPosition(endCell.ContentEnd), "Inconsistent Rows on end");
System\Windows\Documents\TextRangeSerialization.cs (2)
159if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 1223if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3)
System\windows\Documents\TextSelection.cs (1)
1064ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer();