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)
19
internal sealed class DocumentSequenceTextPointer :
ContentPosition
, ITextPointer
System\Windows\Documents\FixedTextPointer.cs (1)
23
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
;
1912
if (data.ContentPosition != null && data.ContentPosition !=
ContentPosition
.Missing)
3350
public MakeVisibleData(Visual visual,
ContentPosition
contentPosition, Rect rect)
3368
public
ContentPosition
ContentPosition
3382
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; }
343
ContentPosition
IFlowDocumentViewer.ContentPosition
663
if (findResult.Start is
ContentPosition
)
665
BringContentPositionIntoView((
ContentPosition
)findResult.Start);
696
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)
900
ContentPosition
contentPosition = null;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
1104
ContentPosition
contentPosition;
1167
if (contentPosition != null && contentPosition !=
ContentPosition
.Missing)
1668
internal BringIntoViewState(DocumentViewerBase source,
ContentPosition
contentPosition, DependencyObject targetObject, Rect targetRect)
1676
internal
ContentPosition
ContentPosition;
System\Windows\Controls\SinglePageViewer.cs (8)
922
internal
ContentPosition
ContentPosition
975
if (_contentPosition ==
ContentPosition
.Missing)
1021
private bool IsValidContentPositionForDocument(IDocumentPaginatorSource document,
ContentPosition
contentPosition)
1039
ContentPosition
contentPosition = arg as
ContentPosition
;
1172
if (findResult.Start is
ContentPosition
)
1176
_contentPosition = (
ContentPosition
)findResult.Start;
1497
private
ContentPosition
_contentPosition; // Current position to be maintained during zooming and resizing.
System\Windows\Documents\DocumentSequence.cs (10)
307
internal int GetPageNumber(
ContentPosition
contentPosition)
315
ContentPosition
childContentPosition = null;
320
childContentPosition = dsTextPointer.ChildPointer as
ContentPosition
;
357
internal
ContentPosition
GetObjectPosition(Object o)
366
ContentPosition
cp = childPaginator.GetObjectPosition(o);
367
if (cp !=
ContentPosition
.Missing && (cp is ITextPointer))
374
return
ContentPosition
.Missing;
380
internal
ContentPosition
GetPagePosition(DocumentPage page)
385
return
ContentPosition
.Missing;
1136
internal
ContentPosition
ContentPosition
System\Windows\Documents\FixedDocument.cs (6)
395
internal int GetPageNumber(
ContentPosition
contentPosition)
436
internal
ContentPosition
GetObjectPosition(Object o)
501
return fixedTextPointer ??
ContentPosition
.Missing;
508
internal
ContentPosition
GetPagePosition(DocumentPage page)
513
return
ContentPosition
.Missing;
1426
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)
879
internal
ContentPosition
GetObjectPosition(Object element)
927
return flowContentPosition ??
ContentPosition
.Missing;