ClassFixedDocumentViewerBase
Definition
Namespace:Telerik.UI.Xaml.Controls.PdfViewer
Assembly:Telerik.WinUI.Controls.PdfViewer.dll
Syntax:
public abstract class FixedDocumentViewerBase : RadControl, IFixedDocumentViewer
Inheritance: objectRadControlFixedDocumentViewerBase
Derived Classes:
Implements:
Inherited Members
Constructors
FixedDocumentViewerBase()
Declaration
public FixedDocumentViewerBase()
Fields
CommandDescriptorsProperty
Indentifies CommandDescriptors property.
Declaration
public static readonly DependencyProperty CommandDescriptorsProperty
Field Value
DependencyProperty
CurrentPageNumberProperty
Identifies the CurrentPageNumber property.
Declaration
public static readonly DependencyProperty CurrentPageNumberProperty
Field Value
DependencyProperty
DocumentProperty
Identifies the Document property.
Declaration
public static readonly DependencyProperty DocumentProperty
Field Value
DependencyProperty
DocumentSourceProperty
Identifies DocumentSource property.
Declaration
public static readonly DependencyProperty DocumentSourceProperty
Field Value
DependencyProperty
ModeProperty
Identifies Mode property.
Declaration
public static readonly DependencyProperty ModeProperty
Field Value
DependencyProperty
ScaleFactorProperty
Indentifies the ScaleFactor property.
Declaration
public static readonly DependencyProperty ScaleFactorProperty
Field Value
DependencyProperty
ScaleModeProperty
Identifies the ScaleMode property.
Declaration
public static readonly DependencyProperty ScaleModeProperty
Field Value
DependencyProperty
SelectionFillProperty
Identifies the SelectionFill property.
Declaration
public static readonly DependencyProperty SelectionFillProperty
Field Value
DependencyProperty
Properties
CanHorizontallyScroll
Gets the can horizontally scroll.
Declaration
public bool CanHorizontallyScroll { get; }
Property Value
The can horizontally scroll.
Implements
CanVerticallyScroll
Gets the can vertically scroll.
Declaration
public bool CanVerticallyScroll { get; }
Property Value
The can vertically scroll.
Implements
CommandDescriptors
Gets or sets the command descriptors.
Declaration
public CommandDescriptors CommandDescriptors { get; set; }
Property Value
The command descriptors.
CurrentPage
Gets the current page.
Declaration
public RadFixedPage CurrentPage { get; }
Property Value
RadFixedPage
The current page.
CurrentPageNumber
Gets or sets the current page number.
Declaration
public int CurrentPageNumber { get; set; }
Property Value
The current page number.
Cursors
Gets the cursors.
Declaration
public CursorsCollection Cursors { get; }
Property Value
The cursors.
Implements
DefaultImportSettings
Gets or sets the default import settings for the current FixedDocumentViewerBase. This property is used in the OpenPdfDocumentCommand.
Declaration
public PdfImportSettings DefaultImportSettings { get; set; }
Property Value
PdfImportSettings
The default import settings.
Document
Gets or sets the document for the viewer.
Declaration
public RadFixedDocument Document { get; set; }
Property Value
RadFixedDocument
The document.
Implements
Remarks
Instance of RadFixedDocument can be created from PdfFormatProvider class. Otherwise the DocumentSource property should be used.
DocumentSource
Gets or sets the document source for the viewer.
Declaration
public abstract FixedDocumentStreamSource DocumentSource { get; set; }
Property Value
The document source.
FixedDocumentPresenter
Gets or sets the document presenter. The fixed document presenter is used to visualize RadFixedDocument instance.
Declaration
public IFixedDocumentPresenter FixedDocumentPresenter { get; set; }
Property Value
The document presenter.
Implements
HorizontalScrollBar
Gets the horizontal scroll bar.
Declaration
public ScrollBar HorizontalScrollBar { get; }
Property Value
ScrollBar
Implements
HorizontalScrollOffset
Gets the horizontal scroll offset.
Declaration
public double HorizontalScrollOffset { get; }
Property Value
The horizontal scroll offset.
Implements
Mode
Gets or sets the mode that the FixedDocumentViewerBase class works.
Declaration
public FixedDocumentViewerMode Mode { get; set; }
Property Value
The mode.
Implements
PagesCount
Gets the number of pages of the currently loaded document.
RotationAngle
Gets the rotation angle.
Declaration
public RotationAngle RotationAngle { get; }
Property Value
The rotation angle.
Implements
ScaleFactor
Gets or sets the scale factor for the viewer.
Declaration
public double ScaleFactor { get; set; }
Property Value
The scale factor.
Implements
ScaleMode
Gets or sets the scale mode.
Declaration
public ScaleMode ScaleMode { get; set; }
Property Value
The scale mode.
SelectionFill
Gets or sets the selection fill.
Declaration
public Brush SelectionFill { get; set; }
Property Value
Brush
The selection fill.
VerticalScrollBar
Gets the vertical scroll bar.
Declaration
public ScrollBar VerticalScrollBar { get; }
Property Value
ScrollBar
Implements
VerticalScrollOffset
Gets the vertical scroll offset.
Declaration
public double VerticalScrollOffset { get; }
Property Value
The vertical scroll offset.
Implements
Methods
Find(string)
Finds next mach for the specified text in the current document.
Declaration
public SearchResult Find(string text)
Parameters
text
The text.
Returns
SearchResult
The result.
Find(string, TextSearchOptions)
Finds next match for the specified text in the current document using specified options.
Declaration
public SearchResult Find(string text, TextSearchOptions options)
Parameters
text
The text.
options
TextSearchOptions
The options.
Returns
SearchResult
The result.
FindAll(string)
Finds all matches for the specified text in the current document.
Declaration
public IEnumerable<SearchResult> FindAll(string text)
Parameters
text
The text.
Returns
IEnumerable<SearchResult>
FindAll(string, TextSearchOptions)
Finds all matches for the specified text in the current document using specified options.
Declaration
public IEnumerable<SearchResult> FindAll(string text, TextSearchOptions options)
Parameters
text
The text.
options
TextSearchOptions
The options.
Returns
IEnumerable<SearchResult>
FindPrevious(string)
Finds the previous text in the current document.
Declaration
public SearchResult FindPrevious(string text)
Parameters
text
The text.
Returns
SearchResult
FindPrevious(string, TextSearchOptions)
Finds the previous text in the current document using specified options.
Declaration
public SearchResult FindPrevious(string text, TextSearchOptions options)
Parameters
text
The text.
options
TextSearchOptions
The options.
Returns
SearchResult
FitToPage()
Fits FixedDocumentViewerBase content to page size.
Declaration
public void FitToPage()
FitToWidth()
Fits FixedDocumentViewerBase content to page width.
Declaration
public void FitToWidth()
GetRegisteredPresenter(string)
Gets the registered presenter.
Declaration
public IFixedDocumentPresenter GetRegisteredPresenter(string presenterName)
Parameters
presenterName
Name of the presenter.
Returns
GetSelectedText()
Gets the selected text.
GetSelectedTextAsync()
Gets the selected text asynchronously.
GoToDestination(Destination)
Goes to given destination.
Declaration
public void GoToDestination(Destination destination)
Parameters
destination
Destination
The destination.
GoToPage(int)
Goes to specified page.
Declaration
public void GoToPage(int pageNo)
Parameters
pageNo
The page number.
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
Declaration
protected override void OnApplyTemplate()
Overrides
OnCurrentPageChanged(CurrentPageChangedEventArgs)
Called when current page is changed.
Declaration
protected void OnCurrentPageChanged(CurrentPageChangedEventArgs e)
Parameters
e
OnDocumentChangedOverride(RadFixedDocument, RadFixedDocument)
Called when the document is changed.
Declaration
protected virtual void OnDocumentChangedOverride(RadFixedDocument oldValue, RadFixedDocument newValue)
Parameters
oldValue
RadFixedDocument
The old value.
newValue
RadFixedDocument
The new value.
Print()
Shows the PrintManager print UI obtained from the main Window of the current process.
The WinUI printing API is currently supported only on Windows 11.
Declaration
public void Print()
RegisterPresenter(string, IFixedDocumentPresenter)
Registers the presenter.
Declaration
public void RegisterPresenter(string presenterName, IFixedDocumentPresenter presenter)
Parameters
presenterName
Name of the presenter.
presenter
The presenter.
ScrollToHorizontalOffset(double)
Scrolls to horizontal offset.
Declaration
public void ScrollToHorizontalOffset(double offset)
Parameters
offset
The offset.
Implements
ScrollToVerticalOffset(double)
Scrolls to vertical offset.
Declaration
public void ScrollToVerticalOffset(double offset)
Parameters
offset
The offset.
Implements
Select(TextPosition, TextPosition)
Creates selection from start position to end position.
Declaration
public void Select(TextPosition startPosition, TextPosition endPosition)
Parameters
startPosition
TextPosition
The start position.
endPosition
TextPosition
The end position.
Select(TextRange)
Selects the specified range.
Declaration
public void Select(TextRange range)
Parameters
range
TextRange
The range.
SetDocumentSource(FixedDocumentStreamSource)
Sets the document source.
Declaration
protected virtual void SetDocumentSource(FixedDocumentStreamSource source)
Parameters
source
The source.
SetRotationAngle(RotationAngle)
Sets the rotation angle.
Declaration
public void SetRotationAngle(RotationAngle rotationAngle)
Parameters
rotationAngle
The rotation angle.
Events
AnnotationClicked
Occurs when annotation is clicked.
Declaration
public event EventHandler<AnnotationEventArgs> AnnotationClicked
Event Value
EventHandler<AnnotationEventArgs>
CurrentPageChanged
Occurs after the current page is changed.
Declaration
public event EventHandler<CurrentPageChangedEventArgs> CurrentPageChanged
Event Value
DocumentChanged
Occurs after the PDF document is changed.
Declaration
public event EventHandler<DocumentChangedEventArgs> DocumentChanged
Event Value
Implements
FixedDocumentPresenterChanged
Occurs after the fixed document presenter is changed.
Declaration
public event EventHandler FixedDocumentPresenterChanged
Event Value
HyperlinkClicked
Occurs when a hyperlink is clicked.
Declaration
public event EventHandler<HyperlinkClickedEventArgs> HyperlinkClicked
Event Value
Implements
ModeChanged
Occurs when the mode is changed.
ScaleFactorChanged
Occurs when the scale factor is changed.
Declaration
public event EventHandler<ScaleFactorChangedEventArgs> ScaleFactorChanged
Event Value
Implements
ScaleModeChanged
Occurs when the scale mode is changed.