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