4 types derived from ContentPosition
PresentationCore (1)
System\Windows\Documents\ContentPosition.cs (1)
31private class MissingContentPosition : ContentPosition {}
PresentationFramework (3)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
21internal sealed class DocumentSequenceTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\FixedTextPointer.cs (1)
25internal class FixedTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\TextPointer.cs (1)
234public class TextPointer : ContentPosition, ITextPointer
81 references to ContentPosition
PresentationCore (10)
System\Windows\Documents\ContentPosition.cs (1)
24public static readonly ContentPosition Missing = new MissingContentPosition();
System\Windows\Documents\DynamicDocumentPaginator.cs (6)
44public abstract int GetPageNumber(ContentPosition contentPosition); 54public virtual void GetPageNumberAsync(ContentPosition contentPosition) 68public virtual void GetPageNumberAsync(ContentPosition contentPosition, object userState) 75if (contentPosition == ContentPosition.Missing) 92public abstract ContentPosition GetPagePosition(DocumentPage page); 102public abstract ContentPosition GetObjectPosition(Object value);
System\Windows\Documents\GetPageNumberCompletedEventArgs.cs (3)
34public GetPageNumberCompletedEventArgs(ContentPosition contentPosition, int pageNumber, Exception error, bool cancelled, object userState) 45public ContentPosition ContentPosition 71private readonly ContentPosition _contentPosition;
PresentationFramework (71)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
339pageNumber = ddp != null ? ddp.GetPageNumber((ContentPosition)pointer) : -1; 442endPageNumber = ddp != null ? ddp.GetPageNumber((ContentPosition)end) : -1;
MS\Internal\Annotations\TextAnchor.cs (4)
471public ContentPosition BoundingStart 475return Start as ContentPosition; 482public ContentPosition BoundingEnd 486return End as ContentPosition;
MS\Internal\Documents\DocumentGrid.cs (8)
262ContentPosition cp = Content.GetObjectPosition(v); 280ContentPosition cp = Content.GetObjectPosition(o); 303ContentPosition cp = tp as ContentPosition; 1909if (data.ContentPosition != null && data.ContentPosition != ContentPosition.Missing) 3357public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect) 3375public ContentPosition ContentPosition 3389private ContentPosition _contentPosition;
MS\Internal\Documents\FixedDocumentPaginator.cs (3)
76public override int GetPageNumber(ContentPosition contentPosition) 84public override ContentPosition GetPagePosition(DocumentPage page) 92public override ContentPosition GetObjectPosition(Object o)
MS\Internal\Documents\FixedDocumentSequencePaginator.cs (3)
76public override int GetPageNumber(ContentPosition contentPosition) 84public override ContentPosition GetPagePosition(DocumentPage page) 92public override ContentPosition GetObjectPosition(Object o)
MS\Internal\Documents\FlowDocumentPaginator.cs (9)
213public override void GetPageNumberAsync(ContentPosition contentPosition, object userState) 218if (contentPosition == ContentPosition.Missing) 268public override int GetPageNumber(ContentPosition contentPosition) 343public override ContentPosition GetPagePosition(DocumentPage page) 362return ContentPosition.Missing; 389return ContentPosition.Missing; 397return (position is TextPointer) ? (ContentPosition)position : ContentPosition.Missing; 408public override ContentPosition GetObjectPosition(Object o)
MS\Internal\Documents\IFlowDocumentViewer.cs (5)
77ContentPosition ContentPosition { get; set; } 355ContentPosition IFlowDocumentViewer.ContentPosition 675if (findResult.Start is ContentPosition) 677BringContentPositionIntoView((ContentPosition)findResult.Start); 708ContentPosition IFlowDocumentViewer.ContentPosition
MS\Internal\Documents\MultiPageTextView.cs (2)
346if (position is ContentPosition) 351pageNumber = documentPaginator.GetPageNumber((ContentPosition)position) + 1;
System\Windows\Controls\FlowDocumentReader.cs (1)
906ContentPosition contentPosition = null;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
1125ContentPosition contentPosition; 1189if (contentPosition != null && contentPosition != ContentPosition.Missing) 1698internal BringIntoViewState(DocumentViewerBase source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect) 1706internal ContentPosition ContentPosition;
System\Windows\Controls\SinglePageViewer.cs (8)
920internal ContentPosition ContentPosition 973if (_contentPosition == ContentPosition.Missing) 1019private bool IsValidContentPositionForDocument(IDocumentPaginatorSource document, ContentPosition contentPosition) 1037ContentPosition contentPosition = arg as ContentPosition; 1170if (findResult.Start is ContentPosition) 1174_contentPosition = (ContentPosition)findResult.Start; 1498private ContentPosition _contentPosition; // Current position to be maintained during zooming and resizing.
System\Windows\Documents\DocumentSequence.cs (10)
314internal int GetPageNumber(ContentPosition contentPosition) 322ContentPosition childContentPosition = null; 329childContentPosition = dsTextPointer.ChildPointer as ContentPosition; 369internal ContentPosition GetObjectPosition(Object o) 378ContentPosition cp = childPaginator.GetObjectPosition(o); 379if (cp != ContentPosition.Missing && (cp is ITextPointer)) 386return ContentPosition.Missing; 392internal ContentPosition GetPagePosition(DocumentPage page) 397return ContentPosition.Missing; 1148internal ContentPosition ContentPosition
System\Windows\Documents\FixedDocument.cs (6)
395internal int GetPageNumber(ContentPosition contentPosition) 436internal ContentPosition GetObjectPosition(Object o) 501return (fixedTextPointer != null) ? fixedTextPointer : ContentPosition.Missing; 508internal ContentPosition GetPagePosition(DocumentPage page) 513return ContentPosition.Missing; 1427internal ContentPosition ContentPosition
System\Windows\Documents\FixedFindEngine.cs (4)
55endPageNumber = paginator.GetPageNumber( (ContentPosition) start); 56pageNumber = paginator.GetPageNumber( (ContentPosition) end); 60endPageNumber = paginator.GetPageNumber( (ContentPosition) end); 61pageNumber = paginator.GetPageNumber( (ContentPosition) start);
System\Windows\Documents\FlowDocument.cs (2)
882internal ContentPosition GetObjectPosition(Object element) 930return (flowContentPosition != null) ? flowContentPosition : ContentPosition.Missing;