124 references to ContentStart
PresentationFramework (123)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
497start = textElement.ContentStart;
MS\Internal\Documents\ContentHostHelper.cs (1)
120if (textView.Contains(contentElement.ContentStart) ||
MS\Internal\Documents\DocumentViewerHelper.cs (2)
395contextMenuPosition = ((TextElement)e.TargetElement).ContentStart; 406contextMenuPosition = ((TextElement)e.TargetElement).ContentStart;
MS\Internal\Documents\TableTextElementCollectionInternal.cs (2)
121TextPointer insertPosition = new TextPointer(itemInsert.ContentStart, -1); 325: new RangeContentEnumerator(Owner.ContentStart, Owner.ContentEnd);
MS\Internal\Documents\TextContainerHelper.cs (2)
542textPointer = ((TextElement)element).ContentStart; 606position = uiContainer.ContentStart;
MS\Internal\Documents\TextDocumentView.cs (5)
813position = ((TextElement)paragraph.Element).ContentStart; 866position = blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward); 2361lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 2861positionOut = blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward); 3470if (textPointer.CompareTo(textElement.ContentStart) == 0)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1016if(!(Element is TextElement) || ((TextElement)Element).ContentStart != textPointer)
MS\Internal\PtsHost\TableParaClient.cs (2)
854if (endPosition.CompareTo(cpc.Cell.ContentStart) <= 0) 921if(position.CompareTo(cpc.Cell.ContentStart) >= 0 && position.CompareTo(cpc.Cell.ContentEnd) <= 0)
MS\Internal\PtsHost\TableParagraph.cs (1)
553StructuralCache.FormattingOwner.Formatter?.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
142endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (8)
39return TextContainerHelper.GetAutomationPeersFromRange(textElement.ContentStart, textElement.ContentEnd, null); 55Geometry geometry = textView.GetTightBoundingGeometryFromTextPositions(textElement.ContentStart, textElement.ContentEnd); 96if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 116TextPointer endPosition = textElement.ContentStart.GetNextInsertionPosition(LogicalDirection.Forward); 120Rect rectElement = CalculateVisibleRect(textView, textElement, textElement.ContentStart, endPosition); 150if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 155if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty) 210return TextContainerHelper.GetAutomationPeersFromRange(start, end, textElement.ContentStart);
System\Windows\Controls\ComboBox.cs (1)
1611strValue += TextRangeBase.GetTextInternal(textElement.ContentStart, textElement.ContentEnd);
System\Windows\Controls\DeferredRunTextReference.cs (1)
43return TextRangeBase.GetTextInternal(_run.ContentStart, _run.ContentEnd);
System\Windows\Controls\RichTextBox.cs (1)
479firstInline.ContentStart.CompareTo(firstInline.ContentEnd) == 0)
System\Windows\Controls\TextAdaptor.cs (1)
600rangeStart = ((TextElement)parent).ContentStart;
System\Windows\Documents\BlockUIContainer.cs (2)
71return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 81TextPointer contentStart = this.ContentStart;
System\Windows\Documents\FlowDocument.cs (1)
892textPointer = ((TextElement)element).ContentStart;
System\Windows\Documents\Hyperlink.cs (2)
99TextPointer navigator = this.ContentStart.CreatePointer(); 784return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
System\Windows\Documents\InlineUIContainer.cs (2)
95return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 105TextPointer contentStart = this.ContentStart;
System\Windows\Documents\List.cs (2)
189TextPointer textNav = new TextPointer(this.ContentStart); 253listItem.Reposition(listItem.ContentStart, block.ElementEnd);
System\Windows\Documents\Paragraph.cs (1)
247ITextPointer navigator = paragraph.ContentStart.CreatePointer();
System\Windows\Documents\Run.cs (2)
68this.ContentStart.InsertTextInRun(text); 247TextPointer contentStart = run.ContentStart;
System\windows\Documents\TextEditorTyping.cs (2)
1425This.Selection.Select(cell.ContentStart, cell.ContentEnd); 1477This.Selection.Select(cell.ContentStart, cell.ContentEnd);
System\Windows\Documents\TextElement.cs (2)
401return this.ContentStart.CompareTo(position) <= 0 && this.ContentEnd.CompareTo(position) >= 0; 904: new RangeContentEnumerator(this.ContentStart, this.ContentEnd);
System\Windows\Documents\TextElementCollection.cs (1)
961this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start;
System\Windows\Documents\TextPointer.cs (1)
59/// <see cref="TextElement.ContentStart"/> and <see cref="TextElement.ContentEnd"/>, etc.
System\Windows\Documents\TextRange.cs (1)
1595this.Select(blockUIContainer.ContentStart, blockUIContainer.ContentEnd);
System\Windows\Documents\TextRangeBase.cs (1)
261thisRange.Select(cell.ContentStart, cell.ContentEnd);
System\Windows\Documents\TextRangeEdit.cs (11)
33newElement.TextContainer.SetValues(newElement.ContentStart, element.GetLocalValueEnumerator()); 549element.Reposition(element.ContentStart, newElement.ElementStart); 641bool needToSplitListItem = TextPointerBase.GetImmediateListItem(paragraph.ContentStart) != null; 753start = startParagraphOrBlockUIContainer.ContentStart; 804TextPointer contentStart = block.ContentStart.GetPositionAtOffset(0, LogicalDirection.Forward); // Normalize forward; 1309nextPosition = ((Inline)nextPosition.GetAdjacentElement(LogicalDirection.Forward)).ContentStart; 1905MergeFormattingInlines(run.ContentStart); 2178ClearPropertyValueFromSpansAndRuns(inline.ContentStart, inline.ContentEnd, formattingProperty); 2208ClearPropertyValueFromSpansAndRuns(span.ContentStart, span.ContentEnd, formattingProperty); 2226SetStructuralInlineProperty(end.Paragraph.ContentStart, end, formattingProperty, value); 2239SetStructuralInlineProperty(paragraph.ContentStart, paragraph.ContentEnd, formattingProperty, value);
System\Windows\Documents\TextRangeEditLists.cs (15)
110previousBlock.Reposition(previousBlock.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 130firstParagraphOrBlockUIContainer.Reposition(firstParagraphOrBlockUIContainer.ContentStart, secondParagraphOrBlockUIContainer.ElementEnd); 153precedingListItem.Reposition(precedingListItem.ContentStart, followingListItem.ElementEnd); 222precedingList.Reposition(precedingList.ContentStart, followingList.ElementEnd); 353leadingListItem.Reposition(leadingListItem.ContentStart, lastListItem.ElementEnd); 376if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 378TextRangeEditTables.EnsureInsertionPosition(listItem.ContentStart); 422leadingListItem.Reposition(leadingListItem.ContentStart, indentedList.ElementEnd); 432lastListItem.Reposition(lastListItem.ContentStart, nestedListOfLastItem.ElementStart); 512if (outerListItem.ContentStart.CompareTo(firstListItem.ElementStart) == 0) 520outerListItem.Reposition(outerListItem.ContentStart, firstListItem.ElementStart); 535lastListItem.Reposition(lastListItem.ContentStart, outerListItemEnd); 562if (listItem.ContentStart.CompareTo(listItem.ContentEnd) == 0) 564TextRangeEditTables.EnsureInsertionPosition(listItem.ContentStart); 714if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
System\Windows\Documents\TextRangeEditTables.cs (42)
379anchorRow != null ? anchorRow.ContentStart : anchorPosition, 386movingRow != null ? movingRow.ContentStart : movingPosition, 458movingPosition = anchorCell.ContentStart.GetInsertionPosition(); 531movingPosition = movingCell.ContentStart.GetInsertionPosition(); 543movingPosition = anchorCell.Table.ContentStart; 567row.ContentStart.GetNextInsertionPosition(LogicalDirection.Backward); 599row.ContentStart.GetNextInsertionPosition(LogicalDirection.Backward); 829position = tableRowGroup.ContentStart; 838position = tableRow.ContentStart; 847position = tableCell.ContentStart; 856position = listItem.ContentStart; 909insertionPosition = implicitRun.ContentStart.GetFrozenPointer(position.LogicalDirection); // return a position with the same orientation inside a Run 924insertionPosition = implicitRun.ContentStart.GetFrozenPointer(position.LogicalDirection); // return a position with the same orientation inside a Run 1025TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1043TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1056TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1140cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1208return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1323spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1336newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1407cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1518cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1768IParentUndoUnit columnResizeUndoUnit = new ColumnResizeUndoUnit(table.ContentStart, columnIndex, _columnWidths, dx); 1924startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 1938return new TextRange(startCell.ContentStart, startCell.ContentStart); 1991TextPointer start = startCell.ContentStart.GetInsertionPosition(LogicalDirection.Forward); 2450firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2453result = new TextRange(firstCell.ContentStart, firstCell.ContentStart); 2483spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
System\Windows\Documents\TextRangeSerialization.cs (3)
159if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 1223if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3) 1225TextElement uiContainer = fragment.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as TextElement;
System\windows\Documents\TextSelection.cs (1)
1368TextPointer cellStart = table.RowGroups[0].Rows[0].Cells[0].ContentStart;
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
463_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);