75 references to ContentEnd
PresentationFramework (75)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
509end = textElement.ContentEnd;
MS\Internal\Documents\ContentHostHelper.cs (1)
125textView.Contains(contentElement.ContentEnd))
MS\Internal\Documents\TableTextElementCollectionInternal.cs (3)
54item.RepositionWithContent(Owner.ContentEnd); 121item.RepositionWithContent(Owner.ContentEnd); 330: new RangeContentEnumerator(Owner.ContentStart, Owner.ContentEnd);
MS\Internal\Documents\TextDocumentView.cs (4)
877position = blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward); 2402lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 2909positionOut = blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward); 3522if (textPointer.CompareTo(textElement.ContentEnd) == 0)
MS\Internal\PtsHost\TableParaClient.cs (3)
871if (startPosition.CompareTo(cpc.Cell.ContentEnd) <= 0) 928if(position.CompareTo(cpc.Cell.ContentStart) >= 0 && position.CompareTo(cpc.Cell.ContentEnd) <= 0) 1141if(((TextPointer)position).CompareTo(row.ContentEnd) == 0)
MS\Internal\PtsHost\TableParagraph.cs (1)
569StructuralCache.FormattingOwner.Formatter.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
146if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 &&
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
44return TextContainerHelper.GetAutomationPeersFromRange(textElement.ContentStart, textElement.ContentEnd, null); 60Geometry geometry = textView.GetTightBoundingGeometryFromTextPositions(textElement.ContentStart, textElement.ContentEnd); 101if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 122if (endPosition == null || endPosition.CompareTo(textElement.ContentEnd) > 0) 123endPosition = textElement.ContentEnd; 155if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 160if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty)
System\Windows\Controls\ComboBox.cs (1)
1624strValue += TextRangeBase.GetTextInternal(textElement.ContentStart, textElement.ContentEnd);
System\Windows\Controls\DeferredRunTextReference.cs (1)
44return TextRangeBase.GetTextInternal(_run.ContentStart, _run.ContentEnd);
System\Windows\Controls\RichTextBox.cs (1)
482firstInline.ContentStart.CompareTo(firstInline.ContentEnd) == 0)
System\Windows\Controls\TextAdaptor.cs (1)
611rangeEnd = ((TextElement)parent).ContentEnd;
System\Windows\Documents\BlockUIContainer.cs (1)
88textContainer.DeleteContentInternal(contentStart, this.ContentEnd);
System\Windows\Documents\Hyperlink.cs (2)
107TextPointer stop = this.ContentEnd; 790return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
System\Windows\Documents\InlineUIContainer.cs (1)
122textContainer.DeleteContentInternal(contentStart, this.ContentEnd);
System\Windows\Documents\List.cs (1)
191while (textNav.CompareTo(this.ContentEnd) != 0)
System\Windows\Documents\Paragraph.cs (1)
249ITextPointer end = paragraph.ContentEnd;
System\Windows\Documents\Run.cs (1)
260textContainer.DeleteContentInternal(contentStart, run.ContentEnd);
System\windows\Documents\TextEditorTyping.cs (2)
1447This.Selection.Select(cell.ContentStart, cell.ContentEnd); 1499This.Selection.Select(cell.ContentStart, cell.ContentEnd);
System\Windows\Documents\TextElement.cs (2)
417return this.ContentStart.CompareTo(position) <= 0 && this.ContentEnd.CompareTo(position) >= 0; 920: new RangeContentEnumerator(this.ContentStart, this.ContentEnd);
System\Windows\Documents\TextElementCollection.cs (1)
975this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;
System\Windows\Documents\TextPointer.cs (1)
65/// <see cref="TextElement.ContentStart"/> and <see cref="TextElement.ContentEnd"/>, etc.
System\Windows\Documents\TextRange.cs (1)
1606this.Select(blockUIContainer.ContentStart, blockUIContainer.ContentEnd);
System\Windows\Documents\TextRangeBase.cs (1)
265thisRange.Select(cell.ContentStart, cell.ContentEnd);
System\Windows\Documents\TextRangeEdit.cs (9)
427if (parent is Span && parent.ContentEnd.CompareTo(end) > 0) 549newElement = InsertElementClone(position, element.ContentEnd, element); 809TextPointer contentEnd = block.ContentEnd; 1303previousPosition = ((Inline)previousPosition.GetAdjacentElement(LogicalDirection.Backward)).ContentEnd; 2181ClearPropertyValueFromSpansAndRuns(inline.ContentStart, inline.ContentEnd, formattingProperty); 2211ClearPropertyValueFromSpansAndRuns(span.ContentStart, span.ContentEnd, formattingProperty); 2220Invariant.Assert(start.Paragraph.ContentEnd.CompareTo(end) < 0); 2223SetStructuralInlineProperty(start, start.Paragraph.ContentEnd, formattingProperty, value); 2242SetStructuralInlineProperty(paragraph.ContentStart, paragraph.ContentEnd, formattingProperty, value);
System\Windows\Documents\TextRangeEditLists.cs (9)
61if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0) 67secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd); 84if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0) 92parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd); 377if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 511TextPointer outerListItemEnd = outerListItem.ContentEnd; 533TextPointer mergePosition = lastListItem.ContentEnd; 563if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 777adjustedEnd = list.ContentEnd;
System\Windows\Documents\TextRangeEditTables.cs (14)
383movingRow != null ? movingRow.ContentEnd : movingPosition)); 390anchorRow != null ? anchorRow.ContentEnd : anchorPosition)); 454movingPosition = anchorCell.ContentEnd.GetInsertionPosition(); 530movingPosition = movingCell.ContentEnd.GetInsertionPosition().GetNextInsertionPosition(LogicalDirection.Forward); 542movingPosition = anchorCell.Table.ContentEnd; 569return (direction == LogicalDirection.Forward) ? row.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward) : 601return (direction == LogicalDirection.Forward) ? row.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward) : 1024TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1042TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1055TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1207return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1994TextPointer end = endCell.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward); 1996Invariant.Assert(GetTableRowFromPosition(end) == GetTableRowFromPosition(endCell.ContentEnd), "Inconsistent Rows on end");
System\Windows\Documents\TextRangeSerialization.cs (2)
166if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 1230if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3)
System\windows\Documents\TextSelection.cs (1)
1083ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer();