18 references to TextRange
PresentationFramework (18)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
204TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 260TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 301TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
108TextRange range = new TextRange(_textContainer.End, _textContainer.End);
System\Windows\Controls\TextBlock.cs (1)
479return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Documents\FlowDocument.cs (1)
160return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Documents\Speller.cs (1)
854debugMessage += $"Xml = {new TextRange((TextPointer)start.TextContainer.Start, (TextPointer)start.TextContainer.End).Xml}";
System\Windows\Documents\TextElement.cs (1)
308return new TextRange(contentStart, contentEnd);
System\Windows\Documents\TextRangeEditLists.cs (2)
685if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.List)))) 713if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
System\Windows\Documents\TextRangeEditTables.cs (8)
1022TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1040TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1053TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1127return new TextRange(textRange.Start, textRange.Start); 1205return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1935return new TextRange(startCell.ContentStart, startCell.ContentStart); 2450result = new TextRange(firstCell.ContentStart, firstCell.ContentStart);