123 references to ContentStart
PresentationFramework (123)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
522start = textElement.ContentStart;
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
126if (textView.Contains(contentElement.ContentStart) ||
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
418contextMenuPosition = ((TextElement)e.TargetElement).ContentStart; 429contextMenuPosition = ((TextElement)e.TargetElement).ContentStart;
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (2)
128TextPointer insertPosition = new TextPointer(itemInsert.ContentStart, -1); 336: new RangeContentEnumerator(Owner.ContentStart, Owner.ContentEnd);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (2)
551textPointer = ((TextElement)element).ContentStart; 615position = uiContainer.ContentStart;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
825position = ((TextElement)paragraph.Element).ContentStart; 881position = blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward); 2410lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 2914positionOut = blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward); 3526if (textPointer.CompareTo(textElement.ContentStart) == 0)
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1066if(!(Element is TextElement) || ((TextElement)Element).ContentStart != textPointer)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
923if (endPosition.CompareTo(cpc.Cell.ContentStart) <= 0) 996if(position.CompareTo(cpc.Cell.ContentStart) >= 0 && position.CompareTo(cpc.Cell.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)
154endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0)
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (8)
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))) 135TextPointer endPosition = textElement.ContentStart.GetNextInsertionPosition(LogicalDirection.Forward); 139Rect rectElement = CalculateVisibleRect(textView, textElement, textElement.ContentStart, endPosition); 169if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 174if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty) 229return TextContainerHelper.GetAutomationPeersFromRange(start, end, textElement.ContentStart);
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)
594rangeStart = ((TextElement)parent).ContentStart;
src\Framework\System\Windows\Documents\BlockUIContainer.cs (2)
76return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 86TextPointer contentStart = this.ContentStart;
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
904textPointer = ((TextElement)element).ContentStart;
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
108TextPointer navigator = this.ContentStart.CreatePointer(); 829return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
src\Framework\System\Windows\Documents\InlineUIContainer.cs (2)
107return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 117TextPointer contentStart = this.ContentStart;
src\Framework\System\Windows\Documents\List.cs (2)
200TextPointer textNav = new TextPointer(this.ContentStart); 264listItem.Reposition(listItem.ContentStart, block.ElementEnd);
src\Framework\System\Windows\Documents\Paragraph.cs (1)
255ITextPointer navigator = paragraph.ContentStart.CreatePointer();
src\Framework\System\Windows\Documents\Run.cs (2)
75this.ContentStart.InsertTextInRun(text); 257TextPointer contentStart = run.ContentStart;
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)
997this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start;
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 (11)
38newElement.TextContainer.SetValues(newElement.ContentStart, element.GetLocalValueEnumerator()); 554element.Reposition(element.ContentStart, newElement.ElementStart); 646bool needToSplitListItem = TextPointerBase.GetImmediateListItem(paragraph.ContentStart) != null; 758start = startParagraphOrBlockUIContainer.ContentStart; 809TextPointer contentStart = block.ContentStart.GetPositionAtOffset(0, LogicalDirection.Forward); // Normalize forward; 1314nextPosition = ((Inline)nextPosition.GetAdjacentElement(LogicalDirection.Forward)).ContentStart; 1910MergeFormattingInlines(run.ContentStart); 2183ClearPropertyValueFromSpansAndRuns(inline.ContentStart, inline.ContentEnd, formattingProperty); 2213ClearPropertyValueFromSpansAndRuns(span.ContentStart, span.ContentEnd, formattingProperty); 2231SetStructuralInlineProperty(end.Paragraph.ContentStart, end, formattingProperty, value); 2244SetStructuralInlineProperty(paragraph.ContentStart, paragraph.ContentEnd, formattingProperty, value);
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (15)
115previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 135firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 158precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd); 227precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd); 356leadingListItem.Reposition(leadingListItem.ContentStart, lastListItem.ElementEnd); 379if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 381TextRangeEditTables.EnsureInsertionPosition(listItem.ContentStart); 425leadingListItem.Reposition(leadingListItem.ContentStart, indentedList.ElementEnd); 435lastListItem.Reposition(lastListItem.ContentStart, nestedListOfLastItem.ElementStart); 515if (outerListItem.ContentStart.CompareTo(firstListItem.ElementStart) == 0) 523outerListItem.Reposition(outerListItem.ContentStart, firstListItem.ElementStart); 538lastListItem.Reposition(lastListItem.ContentStart, outerListItemEnd); 565if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 567TextRangeEditTables.EnsureInsertionPosition(listItem.ContentStart); 717if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (42)
385anchorRow != null ? anchorRow.ContentStart : anchorPosition, 392movingRow != null ? movingRow.ContentStart : movingPosition, 464movingPosition = anchorCell.ContentStart.GetInsertionPosition(); 537movingPosition = movingCell.ContentStart.GetInsertionPosition(); 549movingPosition = anchorCell.Table.ContentStart; 573row.ContentStart.GetNextInsertionPosition(LogicalDirection.Backward); 605row.ContentStart.GetNextInsertionPosition(LogicalDirection.Backward); 831position = tableRowGroup.ContentStart; 840position = tableRow.ContentStart; 849position = tableCell.ContentStart; 858position = listItem.ContentStart; 911insertionPosition = implicitRun.ContentStart.GetFrozenPointer(position.LogicalDirection); // return a position with the same orientation inside a Run 926insertionPosition = implicitRun.ContentStart.GetFrozenPointer(position.LogicalDirection); // return a position with the same orientation inside a Run 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); 1142cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1210return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1325spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1338newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1409cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1520cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1770IParentUndoUnit columnResizeUndoUnit = new ColumnResizeUndoUnit(table.ContentStart, columnIndex, _columnWidths, dx); 1926startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 1940return new TextRange(startCell.ContentStart, startCell.ContentStart); 1993TextPointer start = startCell.ContentStart.GetInsertionPosition(LogicalDirection.Forward); 2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2454firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2455result = new TextRange(firstCell.ContentStart, firstCell.ContentStart); 2485spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (3)
168if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 1254if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3) 1256TextElement uiContainer = fragment.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as TextElement;
src\Framework\System\windows\Documents\TextSelection.cs (1)
1390TextPointer cellStart = table.RowGroups[0].Rows[0].Cells[0].ContentStart;
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
489_cpTable = table.TextContainer.Start.GetOffsetToPosition(table.ContentStart);