4 types derived from ContentPosition
PresentationCore (1)
Core\CSharp\System\Windows\Documents\ContentPosition.cs (1)
35private class MissingContentPosition : ContentPosition {}
PresentationFramework (3)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
31internal sealed class DocumentSequenceTextPointer : ContentPosition, ITextPointer
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
32internal class FixedTextPointer : ContentPosition, ITextPointer
src\Framework\System\Windows\Documents\TextPointer.cs (1)
241public class TextPointer : ContentPosition, ITextPointer
81 references to ContentPosition
PresentationCore (10)
Core\CSharp\System\Windows\Documents\ContentPosition.cs (1)
28public static readonly ContentPosition Missing = new MissingContentPosition();
Core\CSharp\System\Windows\Documents\DynamicDocumentPaginator.cs (6)
47public abstract int GetPageNumber(ContentPosition contentPosition); 57public virtual void GetPageNumberAsync(ContentPosition contentPosition) 71public virtual void GetPageNumberAsync(ContentPosition contentPosition, object userState) 81if (contentPosition == ContentPosition.Missing) 98public abstract ContentPosition GetPagePosition(DocumentPage page); 108public abstract ContentPosition GetObjectPosition(Object value);
Core\CSharp\System\Windows\Documents\GetPageNumberCompletedEventArgs.cs (3)
36public GetPageNumberCompletedEventArgs(ContentPosition contentPosition, int pageNumber, Exception error, bool cancelled, object userState) 47public ContentPosition ContentPosition 73private readonly ContentPosition _contentPosition;
PresentationFramework (71)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
358pageNumber = ddp != null ? ddp.GetPageNumber((ContentPosition)pointer) : -1; 461endPageNumber = ddp != null ? ddp.GetPageNumber((ContentPosition)end) : -1;
src\Framework\MS\Internal\Annotations\TextAnchor.cs (4)
481public ContentPosition BoundingStart 485return Start as ContentPosition; 492public ContentPosition BoundingEnd 496return End as ContentPosition;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (8)
276ContentPosition cp = Content.GetObjectPosition(v); 294ContentPosition cp = Content.GetObjectPosition(o); 317ContentPosition cp = tp as ContentPosition; 1955if (data.ContentPosition != null && data.ContentPosition != ContentPosition.Missing) 3416public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect) 3434public ContentPosition ContentPosition 3448private ContentPosition _contentPosition;
src\Framework\MS\Internal\Documents\FixedDocumentPaginator.cs (3)
84public override int GetPageNumber(ContentPosition contentPosition) 92public override ContentPosition GetPagePosition(DocumentPage page) 100public override ContentPosition GetObjectPosition(Object o)
src\Framework\MS\Internal\Documents\FixedDocumentSequencePaginator.cs (3)
84public override int GetPageNumber(ContentPosition contentPosition) 92public override ContentPosition GetPagePosition(DocumentPage page) 100public override ContentPosition GetObjectPosition(Object o)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (9)
222public override void GetPageNumberAsync(ContentPosition contentPosition, object userState) 230if (contentPosition == ContentPosition.Missing) 280public override int GetPageNumber(ContentPosition contentPosition) 358public override ContentPosition GetPagePosition(DocumentPage page) 380return ContentPosition.Missing; 407return ContentPosition.Missing; 415return (position is TextPointer) ? (ContentPosition)position : ContentPosition.Missing; 426public override ContentPosition GetObjectPosition(Object o)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (5)
81ContentPosition ContentPosition { get; set; } 359ContentPosition IFlowDocumentViewer.ContentPosition 679if (findResult.Start is ContentPosition) 681BringContentPositionIntoView((ContentPosition)findResult.Start); 712ContentPosition IFlowDocumentViewer.ContentPosition
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
351if (position is ContentPosition) 356pageNumber = documentPaginator.GetPageNumber((ContentPosition)position) + 1;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
917ContentPosition contentPosition = null;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
1142ContentPosition contentPosition; 1206if (contentPosition != null && contentPosition != ContentPosition.Missing) 1715internal BringIntoViewState(DocumentViewerBase source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect) 1723internal ContentPosition ContentPosition;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (8)
930internal ContentPosition ContentPosition 983if (_contentPosition == ContentPosition.Missing) 1029private bool IsValidContentPositionForDocument(IDocumentPaginatorSource document, ContentPosition contentPosition) 1047ContentPosition contentPosition = arg as ContentPosition; 1180if (findResult.Start is ContentPosition) 1184_contentPosition = (ContentPosition)findResult.Start; 1508private ContentPosition _contentPosition; // Current position to be maintained during zooming and resizing.
src\Framework\System\Windows\Documents\DocumentSequence.cs (10)
335internal int GetPageNumber(ContentPosition contentPosition) 346ContentPosition childContentPosition = null; 353childContentPosition = dsTextPointer.ChildPointer as ContentPosition; 396internal ContentPosition GetObjectPosition(Object o) 408ContentPosition cp = childPaginator.GetObjectPosition(o); 409if (cp != ContentPosition.Missing && (cp is ITextPointer)) 416return ContentPosition.Missing; 422internal ContentPosition GetPagePosition(DocumentPage page) 427return ContentPosition.Missing; 1181internal ContentPosition ContentPosition
src\Framework\System\Windows\Documents\FixedDocument.cs (6)
423internal int GetPageNumber(ContentPosition contentPosition) 470internal ContentPosition GetObjectPosition(Object o) 538return (fixedTextPointer != null) ? fixedTextPointer : ContentPosition.Missing; 545internal ContentPosition GetPagePosition(DocumentPage page) 550return ContentPosition.Missing; 1480internal ContentPosition ContentPosition
src\Framework\System\Windows\Documents\FixedFindEngine.cs (4)
61endPageNumber = paginator.GetPageNumber( (ContentPosition) start); 62pageNumber = paginator.GetPageNumber( (ContentPosition) end); 66endPageNumber = paginator.GetPageNumber( (ContentPosition) end); 67pageNumber = paginator.GetPageNumber( (ContentPosition) start);
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
890internal ContentPosition GetObjectPosition(Object element) 938return (flowContentPosition != null) ? flowContentPosition : ContentPosition.Missing;