75 references to ContentEnd
PresentationFramework (75)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
523end = textElement.ContentEnd;
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
127textView.Contains(contentElement.ContentEnd))
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (3)
53item.RepositionWithContent(Owner.ContentEnd); 123item.RepositionWithContent(Owner.ContentEnd); 336: new RangeContentEnumerator(Owner.ContentStart, Owner.ContentEnd);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
885position = blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward); 2410lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 2918positionOut = blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward); 3531if (textPointer.CompareTo(textElement.ContentEnd) == 0)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (3)
933if (startPosition.CompareTo(cpc.Cell.ContentEnd) <= 0) 996if(position.CompareTo(cpc.Cell.ContentStart) >= 0 && position.CompareTo(cpc.Cell.ContentEnd) <= 0) 1228if(((TextPointer)position).CompareTo(row.ContentEnd) == 0)
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
573StructuralCache.FormattingOwner.Formatter.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (1)
153if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 &&
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (7)
46return TextContainerHelper.GetAutomationPeersFromRange(textElement.ContentStart, textElement.ContentEnd, null); 68Geometry geometry = textView.GetTightBoundingGeometryFromTextPositions(textElement.ContentStart, textElement.ContentEnd); 115if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 136if (endPosition == null || endPosition.CompareTo(textElement.ContentEnd) > 0) 137endPosition = textElement.ContentEnd; 169if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 174if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty)
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1627strValue += TextRangeBase.GetTextInternal(textElement.ContentStart, textElement.ContentEnd);
src\Framework\System\Windows\Controls\DeferredRunTextReference.cs (1)
46return TextRangeBase.GetTextInternal(_run.ContentStart, _run.ContentEnd);
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
493firstInline.ContentStart.CompareTo(firstInline.ContentEnd) == 0)
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
595rangeEnd = ((TextElement)parent).ContentEnd;
src\Framework\System\Windows\Documents\BlockUIContainer.cs (1)
91textContainer.DeleteContentInternal(contentStart, this.ContentEnd);
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
109TextPointer stop = this.ContentEnd; 829return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
src\Framework\System\Windows\Documents\InlineUIContainer.cs (1)
122textContainer.DeleteContentInternal(contentStart, this.ContentEnd);
src\Framework\System\Windows\Documents\List.cs (1)
201while (textNav.CompareTo(this.ContentEnd) != 0)
src\Framework\System\Windows\Documents\Paragraph.cs (1)
256ITextPointer end = paragraph.ContentEnd;
src\Framework\System\Windows\Documents\Run.cs (1)
260textContainer.DeleteContentInternal(contentStart, run.ContentEnd);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
1464This.Selection.Select(cell.ContentStart, cell.ContentEnd); 1516This.Selection.Select(cell.ContentStart, cell.ContentEnd);
src\Framework\System\Windows\Documents\TextElement.cs (2)
422return this.ContentStart.CompareTo(position) <= 0 && this.ContentEnd.CompareTo(position) >= 0; 965: new RangeContentEnumerator(this.ContentStart, this.ContentEnd);
src\Framework\System\Windows\Documents\TextElementCollection.cs (1)
1008this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;
src\Framework\System\Windows\Documents\TextPointer.cs (1)
67/// <see cref="TextElement.ContentStart"/> and <see cref="TextElement.ContentEnd"/>, etc.
src\Framework\System\Windows\Documents\TextRange.cs (1)
1603this.Select(blockUIContainer.ContentStart, blockUIContainer.ContentEnd);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
276thisRange.Select(cell.ContentStart, cell.ContentEnd);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (9)
429if (parent is Span && parent.ContentEnd.CompareTo(end) > 0) 551newElement = InsertElementClone(position, element.ContentEnd, element); 811TextPointer contentEnd = block.ContentEnd; 1305previousPosition = ((Inline)previousPosition.GetAdjacentElement(LogicalDirection.Backward)).ContentEnd; 2183ClearPropertyValueFromSpansAndRuns(inline.ContentStart, inline.ContentEnd, formattingProperty); 2213ClearPropertyValueFromSpansAndRuns(span.ContentStart, span.ContentEnd, formattingProperty); 2222Invariant.Assert(start.Paragraph.ContentEnd.CompareTo(end) < 0); 2225SetStructuralInlineProperty(start, start.Paragraph.ContentEnd, formattingProperty, value); 2244SetStructuralInlineProperty(paragraph.ContentStart, paragraph.ContentEnd, formattingProperty, value);
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (9)
63if (sublistOfSecondParagraph.ElementEnd.CompareTo(secondListItem.ContentEnd) == 0) 69secondListItem.Reposition(sublistOfSecondParagraph.ElementEnd, secondListItem.ContentEnd); 86if (secondParagraphOrBlockUIContainer.ElementEnd.CompareTo(parentBlock.ContentEnd) == 0) 94parentBlock.Reposition(secondParagraphOrBlockUIContainer.ElementEnd, parentBlock.ContentEnd); 379if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 513TextPointer outerListItemEnd = outerListItem.ContentEnd; 535TextPointer mergePosition = lastListItem.ContentEnd; 565if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 779adjustedEnd = list.ContentEnd;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (14)
386movingRow != null ? movingRow.ContentEnd : movingPosition)); 393anchorRow != null ? anchorRow.ContentEnd : anchorPosition)); 457movingPosition = anchorCell.ContentEnd.GetInsertionPosition(); 533movingPosition = movingCell.ContentEnd.GetInsertionPosition().GetNextInsertionPosition(LogicalDirection.Forward); 545movingPosition = anchorCell.Table.ContentEnd; 572return (direction == LogicalDirection.Forward) ? row.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward) : 604return (direction == LogicalDirection.Forward) ? row.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward) : 1027TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1045TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1058TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1210return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1997TextPointer end = endCell.ContentEnd.GetNextInsertionPosition(LogicalDirection.Forward); 1999Invariant.Assert(GetTableRowFromPosition(end) == GetTableRowFromPosition(endCell.ContentEnd), "Inconsistent Rows on end");
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
168if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 1254if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3)
src\Framework\System\windows\Documents\TextSelection.cs (1)
1086ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer();