124 references to ContentStart
PresentationFramework (123)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
508start = textElement.ContentStart;
MS\Internal\Documents\ContentHostHelper.cs (1)
124if (textView.Contains(contentElement.ContentStart) ||
MS\Internal\Documents\DocumentViewerHelper.cs (2)
398contextMenuPosition = ((TextElement)e.TargetElement).ContentStart; 409contextMenuPosition = ((TextElement)e.TargetElement).ContentStart;
MS\Internal\Documents\TableTextElementCollectionInternal.cs (2)
126TextPointer insertPosition = new TextPointer(itemInsert.ContentStart, -1); 330: new RangeContentEnumerator(Owner.ContentStart, Owner.ContentEnd);
MS\Internal\Documents\TextContainerHelper.cs (2)
546textPointer = ((TextElement)element).ContentStart; 610position = uiContainer.ContentStart;
MS\Internal\Documents\TextDocumentView.cs (5)
817position = ((TextElement)paragraph.Element).ContentStart; 873position = blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward); 2402lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 2905positionOut = blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward); 3517if (textPointer.CompareTo(textElement.ContentStart) == 0)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1040if(!(Element is TextElement) || ((TextElement)Element).ContentStart != textPointer)
MS\Internal\PtsHost\TableParaClient.cs (2)
861if (endPosition.CompareTo(cpc.Cell.ContentStart) <= 0) 928if(position.CompareTo(cpc.Cell.ContentStart) >= 0 && position.CompareTo(cpc.Cell.ContentEnd) <= 0)
MS\Internal\PtsHost\TableParagraph.cs (1)
569StructuralCache.FormattingOwner.Formatter.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
147endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (8)
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))) 121TextPointer endPosition = textElement.ContentStart.GetNextInsertionPosition(LogicalDirection.Forward); 125Rect rectElement = CalculateVisibleRect(textView, textElement, textElement.ContentStart, endPosition); 155if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 160if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty) 215return TextContainerHelper.GetAutomationPeersFromRange(start, end, textElement.ContentStart);
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)
610rangeStart = ((TextElement)parent).ContentStart;
System\Windows\Documents\BlockUIContainer.cs (2)
73return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 83TextPointer contentStart = this.ContentStart;
System\Windows\Documents\FlowDocument.cs (1)
896textPointer = ((TextElement)element).ContentStart;
System\Windows\Documents\Hyperlink.cs (2)
106TextPointer navigator = this.ContentStart.CreatePointer(); 790return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
System\Windows\Documents\InlineUIContainer.cs (2)
107return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 117TextPointer contentStart = this.ContentStart;
System\Windows\Documents\List.cs (2)
190TextPointer textNav = new TextPointer(this.ContentStart); 254listItem.Reposition(listItem.ContentStart, block.ElementEnd);
System\Windows\Documents\Paragraph.cs (1)
248ITextPointer navigator = paragraph.ContentStart.CreatePointer();
System\Windows\Documents\Run.cs (2)
75this.ContentStart.InsertTextInRun(text); 257TextPointer contentStart = run.ContentStart;
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)
964this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start;
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 (11)
36newElement.TextContainer.SetValues(newElement.ContentStart, element.GetLocalValueEnumerator()); 552element.Reposition(element.ContentStart, newElement.ElementStart); 644bool needToSplitListItem = TextPointerBase.GetImmediateListItem(paragraph.ContentStart) != null; 756start = startParagraphOrBlockUIContainer.ContentStart; 807TextPointer contentStart = block.ContentStart.GetPositionAtOffset(0, LogicalDirection.Forward); // Normalize forward; 1312nextPosition = ((Inline)nextPosition.GetAdjacentElement(LogicalDirection.Forward)).ContentStart; 1908MergeFormattingInlines(run.ContentStart); 2181ClearPropertyValueFromSpansAndRuns(inline.ContentStart, inline.ContentEnd, formattingProperty); 2211ClearPropertyValueFromSpansAndRuns(span.ContentStart, span.ContentEnd, formattingProperty); 2229SetStructuralInlineProperty(end.Paragraph.ContentStart, end, formattingProperty, value); 2242SetStructuralInlineProperty(paragraph.ContentStart, paragraph.ContentEnd, formattingProperty, value);
System\Windows\Documents\TextRangeEditLists.cs (15)
113previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 133firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 156precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd); 225precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd); 354leadingListItem.Reposition(leadingListItem.ContentStart, lastListItem.ElementEnd); 377if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 379TextRangeEditTables.EnsureInsertionPosition(listItem.ContentStart); 423leadingListItem.Reposition(leadingListItem.ContentStart, indentedList.ElementEnd); 433lastListItem.Reposition(lastListItem.ContentStart, nestedListOfLastItem.ElementStart); 513if (outerListItem.ContentStart.CompareTo(firstListItem.ElementStart) == 0) 521outerListItem.Reposition(outerListItem.ContentStart, firstListItem.ElementStart); 536lastListItem.Reposition(lastListItem.ContentStart, outerListItemEnd); 563if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 565TextRangeEditTables.EnsureInsertionPosition(listItem.ContentStart); 715if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
System\Windows\Documents\TextRangeEditTables.cs (42)
382anchorRow != null ? anchorRow.ContentStart : anchorPosition, 389movingRow != null ? movingRow.ContentStart : movingPosition, 461movingPosition = anchorCell.ContentStart.GetInsertionPosition(); 534movingPosition = movingCell.ContentStart.GetInsertionPosition(); 546movingPosition = anchorCell.Table.ContentStart; 570row.ContentStart.GetNextInsertionPosition(LogicalDirection.Backward); 602row.ContentStart.GetNextInsertionPosition(LogicalDirection.Backward); 828position = tableRowGroup.ContentStart; 837position = tableRow.ContentStart; 846position = tableCell.ContentStart; 855position = listItem.ContentStart; 908insertionPosition = implicitRun.ContentStart.GetFrozenPointer(position.LogicalDirection); // return a position with the same orientation inside a Run 923insertionPosition = implicitRun.ContentStart.GetFrozenPointer(position.LogicalDirection); // return a position with the same orientation inside a Run 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); 1139cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1207return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1322spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1335newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1406cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1517cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1767IParentUndoUnit columnResizeUndoUnit = new ColumnResizeUndoUnit(table.ContentStart, columnIndex, _columnWidths, dx); 1923startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 1937return new TextRange(startCell.ContentStart, startCell.ContentStart); 1990TextPointer start = startCell.ContentStart.GetInsertionPosition(LogicalDirection.Forward); 2449firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2451firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2452result = new TextRange(firstCell.ContentStart, firstCell.ContentStart); 2482spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
System\Windows\Documents\TextRangeSerialization.cs (3)
166if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 1230if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3) 1232TextElement uiContainer = fragment.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as TextElement;
System\windows\Documents\TextSelection.cs (1)
1387TextPointer cellStart = table.RowGroups[0].Rows[0].Cells[0].ContentStart;
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
466_cpTable = table.TextContainer.Start.GetOffsetToPosition(table.ContentStart);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
865strValue += textElement.ContentStart.GetTextInRun(LogicalDirection.Forward);