[]
Displays PDF documents with navigation controls.
[TemplatePart(Name = "PageList", Type = typeof(C1ListViewer))]
[TemplatePart(Name = "SearchIndicator", Type = typeof(StackPanel))]
[StyleTypedProperty(Property = "ScrollBarStyle", StyleTargetType = typeof(ScrollBar))]
public class C1PdfViewer : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, INotifyPropertyChanged
Name | Description |
---|---|
C1PdfViewer() | Initializes a new instance of a C1PdfViewer. |
Name | Description |
---|---|
BlackoutWordsProperty | Identifies the BlackoutWords dependency property. |
ComputedHorizontalScrollBarVisibilityProperty | Identifies the ComputedHorizontalScrollBarVisibility dependency property. |
ComputedVerticalScrollBarVisibilityProperty | Identifies the ComputedVerticalScrollBarVisibility dependency property. |
DecreaseZoomCommandProperty | Identifies the DecreaseZoomCommand dependency property. |
ExtentHeightProperty | Identifies the ExtentHeight dependency property. |
ExtentWidthProperty | Identifies the ExtentWidth dependency property. |
FindCountProperty | Identifies the FindCount dependency property. |
FindNextCommandProperty | Identifies the FindNextCommand dependency property. |
FindNumberProperty | Identifies the FindNumber dependency property. |
FindPreviousCommandProperty | Identifies the FindPreviousCommand dependency property. |
FindTextProperty | Identifies the FindText dependency property. |
FirstPageCommandProperty | Identifies the FirstPageCommand dependency property. |
HorizontalOffsetProperty | Identifies the HorizontalOffset dependency property. |
HorizontalScrollBarVisibilityProperty | Identifies the HorizontalScrollBarVisibility dependency property. |
IncreaseZoomCommandProperty | Identifies the IncreaseZoomCommand dependency property. |
IsFlowingProperty | Identifies the IsFlowing dependency property. |
LastPageCommandProperty | Identifies the LastPageCommand dependency property. |
MaxZoomProperty | Identifies the MaxZoom dependency property. |
MinZoomProperty | Identifies the MinZoom dependency property. |
NextPageCommandProperty | Identifies the NextPageCommand dependency property. |
OpenButtonVisibilityProperty | Identifies the OpenButtonVisibility dependency property. |
OpenCommandProperty | Identifies the OpenCommand dependency property. |
OrientationProperty | Identifies the Orientation dependency property. |
PageSeparationProperty | Identifies the PageSeparation dependency property. |
PageTemplateProperty | Identifies the PageTemplate dependency property. |
PreviousPageCommandProperty | Identifies the PreviousPageCommand dependency property. |
PrintCommandProperty | Identifies the PrintCommand dependency property. |
RenderModeProperty | |
SaveCommandProperty | Identifies the SaveCommand dependency property. |
ScrollBarStyleProperty | Identifies the ScrollBarStyle dependency property. |
ScrollableHeightProperty | Identifies the ScrollableHeight dependency property. |
ScrollableWidthProperty | Identifies the ScrollableWidth dependency property. |
SelectionBackgroundProperty | Identifies the SelectionBackground dependency property. |
SourceProperty | Gets or sets the uri of the document. |
ToolbarStyleProperty | Identifies the ToolbarStyle dependency property. |
ToolbarVisibilityProperty | Identifies the ToolbarVisibility dependency property. |
VerticalOffsetProperty | Identifies the VerticalOffset dependency property. |
VerticalScrollBarVisibilityProperty | Identifies the VerticalScrollBarVisibility dependency property. |
ViewModeProperty | Identifies the ViewMode dependency property. |
ViewportGapProperty | Identifies the ViewportGap dependency property. |
ViewportHeightProperty | Identifies the ViewportHeight dependency property. |
ViewportWidthProperty | Identifies the ViewportWidth dependency property. |
ZoomProperty | Identifies the Zoom dependency property. |
Name | Description |
---|---|
Attachments | Gets the list of attachments for this document. |
AutoContentRotation | Indicate whether the printer automatically change the page orientation according to the size of content. |
BlackoutWords | Gets or sets specific text as black out. |
Bookmarks | Gets the list of top level bookmarks for this document. |
ComputedHorizontalScrollBarVisibility | Gets a value that indicates whether the horizontal ScrollBar is visible. |
ComputedVerticalScrollBarVisibility | Gets a value that indicates whether the vertical ScrollBar is visible. |
DecreaseZoomCommand | Gets the ICommand that decreases zoom. |
DocumentInfo | Gets a value that contain document information |
ExtentHeight | Gets the vertical size of all the content for display in the C1PdfViewer. |
ExtentWidth | Gets the horizontal size of all the content for display in the C1PdfViewer. |
FastMode | Gets or sets a value that determines that the PDF file should be rendered faster but with less accurate positioning. |
FindCount | Gets the total number of occurrences of FindText. |
FindNextCommand | Gets the ICommand that performs the FindNext() operation. |
FindNumber | Gets the number of the currently selected occurrence of FindText. |
FindPreviousCommand | Gets the ICommand that performs the FindPrevious() operation. |
FindText | Gets or sets the text that will be searched by FindNext() and FindPrevious(). |
FirstPageCommand | Gets the ICommand that goes to the first page. |
FormFields | A collection of fields for gathering information interactively from the user. |
HorizontalOffset | Gets or sets a value that indicates the horizontal offset of the scrolled content. |
HorizontalScrollBarVisibility | Gets or sets a value that indicates whether a horizontal ScrollBar should be displayed. |
IncreaseZoomCommand | Gets the ICommand that increases zoom. |
IsFlowing | Gets whether the current document is displayed as a flowing document, instead of paged. |
LastPageCommand | Gets the ICommand that goes to the last page. |
MaxZoom | Gets or sets the document max zoom. |
MinZoom | Gets or sets the document min zoom. |
NextPageCommand | Gets the ICommand that goes to the next page. |
OpenButtonVisibility | Gets or sets a value that indicates whether open button in the toolbar should be displayed. |
OpenCommand | Gets the ICommand that opens the document using OpenFileDialog. |
Orientation | Gets or sets the orientation in which the list is displayed. |
PageCount | Gets the number of pages in the loaded document. |
PageNumber | Gets the index of the first displayed page. |
PageSeparation | Gets or sets the separation between pages. |
PageTemplate | Gets or sets the DataTemplate used to display pages. |
PreviousPageCommand | Gets the ICommand that goes to the previous page. |
PrintCommand | Gets the ICommand that performs the PrintDocument(string) operation. |
RenderMode | |
SaveCommand | Gets the ICommand that saves the document using SaveFileDialog. |
ScrollBarStyle | Gets or sets the Style used by the ScrollBar control contained in the default template. |
ScrollableHeight | Gets a value that represents the horizontal size of the area that can be scrolled; the difference between the height of the extent and the height of the viewport. |
ScrollableWidth | Gets a value that represents the vertical size of the area that can be scrolled; the difference between the width of the extent and the width of the viewport. |
SelectedText | Gets the current selection. |
SelectionBackground | Gets or sets a Brush for this C1PdfViewer's selection. |
Source | Gets or sets the uri of the document. |
ToolbarStyle | Gets or set the style applied to this C1PdfViewer's toolbar. |
ToolbarVisibility | Gets or sets the Visibility of this C1PdfViewer toolbar. |
VerticalOffset | Gets or sets a value that indicates the vertical offset of the scrolled content. |
VerticalScrollBarVisibility | Gets or sets a value that indicates whether a horizontal ScrollBar should be displayed. |
ViewMode | Gets or sets the ViewMode for this C1PdfViewer. |
ViewportGap | Gets or sets a coeficient which will determine in each layout pass the size of the viewport. If zero is specified the size of the viewport will be equal to the scrollviewer viewport. If 0.5 is specified the size of the viewport will be enlarged to take up half screen more at both sides of the original viewport. |
ViewportHeight | Gets a value that contains the vertical size of the viewable content. |
ViewportWidth | Gets a value that contains the horizontal size of the viewable content. |
Zoom | Gets or sets the document zoom. |
Name | Description |
---|---|
ClipboardCopy() | Copy the current selection to the clipboard. |
CloseDocument() | Closes the current document. |
FindNext() | Go to the next occurrence of FindText. |
FindNext(IList<FrameworkElement>) | Go to the next occurrence of FindText in the specialized pages. |
FindPrevious() | Go to the previous occurrence of FindText. |
FindPrevious(IList<FrameworkElement>) | Go to the previous occurrence of FindText in the specialized pages. |
GetAttachment(Attachment) | Returns memory stream with attachment data. |
GetPage(int) | Returns a copy of the FrameworkElement that represent a specified document page. |
GetPages() | Returns a copy of the FrameworkElements that represent the document pages. |
GoToBookmark(params string[]) | Jump to a specified bookmark. |
GoToPage(int) | Jump to a specified page number. |
LoadDocument(Stream, string) | Load a PDF document from a Stream. |
LoadDocument(string, string) | Load a PDF document from a file. |
OnApplyTemplate() | Builds the visual tree for the C1PdfViewer control when a new template is applied. |
OnKeyDown(KeyEventArgs) | |
OnParsingError(object, ParsingErrorEventArgs) | Provides class handling for the C1PdfViewer.ParsingError event that occurs when any error occurs in pdf parsing. |
OnPreparedPage(object, PreparedPageEventArgs) | Provides class handling for the C1PdfViewer.PreparedPage event that occurs when pages end rendering. |
OnPreparingPage(object, PreparingPageEventArgs) | Provides class handling for the C1PdfViewer.PreparingPage event that occurs when pages start rendering. |
OpenDocument() | Open a file. |
PrintDocument(string) | Print the current document. |
RaisePropertyChanged(string) | Raises the property changed event. |
RemoveEvents() | |
SaveDocument() | Save the current document to a file. |
SaveDocument(Stream) | Save the current document to a Stream. |
ScrollToHorizontalOffset(double) | Scrolls the content to the specified horizontal offset position. |
ScrollToVerticalOffset(double) | Scrolls the content to the specified vertical offset position. |
ZoomAt(double, Point, Action) | Call a zooms animation. |
Name | Description |
---|---|
AttachmentClick | Fired when click on attachment icon. |
FindCountChanged | Event raised when the FindCount property has changed. |
FindNumberChanged | Event raised when the FindNumber property has changed. |
FindTextChanged | Event raised when the FindText property has changed. |
IsFlowingChanged | Event raised when the IsFlowing property has changed. |
PageCountChanged | Event raised when the PageCount property has changed. |
PageNumberChanged | Event raised when the PageNumber property has changed. |
ParsingError | Fired only when any error occurs in pdf parsing. |
PreparedPage | Fired only when pdf pages end rendering. |
PreparingPage | Fired only when pdf pages start rendering. |
PropertyChanged | Occurs when a property value changes. |
RequestNavigate | Fired when a link from a document is clicked. |
TextBlockAdded | Fired after a TextBlock is created from text in the PDF file, permitting font substitution. |
ViewModeChanged | Event raised when the ViewMode property has changed. |
ZoomChanged | Event raised when the Zoom property has changed. |