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