[]
        
(Showing Draft Content)

C1.Android.Viewer.FlexViewer

FlexViewer Class

Represents a control showing the preview of the associated document.

Inheritance
FlexViewer
Implements
IComponent
IDisposable
Namespace: C1.Android.Viewer
Assembly: C1.Android.Viewer.dll
Syntax
public class FlexViewer : ViewGroup, IDependencyObject, IComponent, IDisposable

Constructors

Name Description
FlexViewer(Context)

Initializes a new instance of the FlexViewer class.

FlexViewer(Context, IAttributeSet)

Initializes a new instance of the FlexViewer class.

Fields

Name Description
BackgroundColorProperty

Identifies the BackgroundColorProperty dependency property.

FlexViewerZoomModeProperty

The zoom mode property

LoadingPageSizeProperty

Identifies the C1.Android.Viewer.FlexViewer.LoadingPageSize dependency property.

MenuItemsProperty

Identifies the MenuItems dependency property.

MenuWidthProperty

The menu width property

PaddingProperty

Identifies the Padding dependency property.

PageBackgroundColorProperty

Identifies the PageBackgroundColor dependency property.

PageBorderColorProperty

Identifies the PageBorderColor dependency property.

PageDisplayModeProperty

The display mode property

PageSpacingProperty

Identifies the PageSpacing dependency property.

RotateProperty

The rotate property

ShowMenuProperty

Identifies the ShowMenu dependency property.

ShowToolbarProperty

Identifies the ShowToolbar dependency property.

Properties

Name Description
BackgroundColor

Gets or sets a the background color of the flexviewer.

MenuItems

Gets or sets the menu items.

MenuWidth

Gets or sets the width of the hamburger menu.

Padding

Gets or sets the amount of padding between pages and the preview window edges.

PageBackgroundColor

Gets or sets a color used for filling the page content.

PageBorderColor

Gets or sets a brush used for drawing page borders.

PageDisplayMode

Gets or sets the display mode.

PageSpacing

Gets or sets the amount of padding between pages in the preview.

RotateMode

Gets or sets the rotate clockwise.

ShowMenu

Gets or sets a value indicating whether the hamburger is visible or not.

ShowToolbar

Gets or sets a value indicating whether the toolbar is visible or not.

Site

IComponent Site

ZoomMode

Gets or sets the preview zoom mode.

Methods

Name Description
CloseDocument()

Clears the document, removing all content and resetting all properties and settings to their initial default values.

DispatchTouchEvent(MotionEvent)

Pass the touch screen motion event down to the target view, or this view if it is the target.

Dispose(bool)
GetActiveSearchItem()

Gets the current active search item. Return null if no item is actived.

GetVisiblePageNumbers()

Returns numbers of pages which are currently visible in the viewport.

LoadDocument(Stream, string)

Loads document to the viewer

Next(bool, bool)

Get next search item. Return null if not found.

OnAttachedToWindow()

On attached to window

OnDetachedFromWindow()

On detached from window

OnLayout(bool, int, int, int, int)

Layouts the view

OnMeasure(int, int)

Measures the view

Previous(bool, bool)

Get previous search item. Return null if not found.

Refresh()

Refresh layout and data of flexviewer.

ResetSearch()

Stops the search mode and removes highlighting from the found text fragments.

Save(Stream, bool)

Saves the current PDF document to a System.IO.Stream.

Save(string, bool)

Saves the current PDF document to a file.

SaveAsBmp(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images in BMP format, one page per output file. The fileName parameter is used as a .NET format string, with current page number (1-based) passed to it as the value to be formatted. Note that if fileName does not contain a format item (such as "{0}"), all pages will be saved into the same file name, the last page overwriting everything else.

SaveAsGif(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images in GIF format, one page per output file. The fileName parameter is used as a .NET format string, with current page number (1-based) passed to it as the value to be formatted. Note that if fileName does not contain a format item (such as "{0}"), all pages will be saved into the same file name, the last page overwriting everything else.

SaveAsJpeg(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images in JPEG format, one page per output file. The fileName parameter is used as a .NET format string, with current page number (1-based) passed to it as the value to be formatted. Note that if fileName does not contain a format item (such as "{0}"), all pages will be saved into the same file name, the last page overwriting everything else.

SaveAsPng(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images in PNG format, one page per output file. The fileName parameter is used as a .NET format string, with current page number (1-based) passed to it as the value to be formatted. Note that if fileName does not contain a format item (such as "{0}"), all pages will be saved into the same file name, the last page overwriting everything else.

SaveAsTiff(Stream, OutputRange, SaveAsImageOptions)

Saves the document pages as images to a stream in TIFF format, one page per frame.

SaveAsTiff(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images to a file in TIFF format, one page per frame.

SearchText(string, bool, bool, bool, bool, bool)

Starts searching text with specified parameters

ShowPrintDialog()

Shows the print dialog

Events

Name Description
Disposed

Occurs when the object is disposed.

DocumentOpening

Occurs when a document stream is being requested.

DocumentSaving

Occurs when a document stream is being saved.

DocumentSourceChanged

Occurs after the document source is changed.

DocumentSourceChanging

Occurs before the document source is changed.

MenuItemClicked

Occurs when click on hamburger menu item.