Search Results for

    Show / Hide Table of Contents

    Class DocumentViewerBase

    Interaction logic for DocumentViewerBase.xaml

    Inheritance
    System.Object
    DocumentViewerBase
    MultiDocumentViewer
    Implements
    IDocumentViewer
    IDisposable
    Namespace: Simplic.Framework.DBUI
    Assembly: Simplic.Framework.DBUI.dll
    Syntax
    public class DocumentViewerBase : UserControl, IDocumentViewer

    Constructors

    | Improve this Doc View Source

    DocumentViewerBase()

    Constructor

    Declaration
    public DocumentViewerBase()

    Properties

    | Improve this Doc View Source

    DocumentExtension

    Declaration
    public virtual string DocumentExtension { get; protected set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    DocumentIsLoaded

    True if a document is loaded

    Declaration
    protected bool DocumentIsLoaded { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Extension

    Contains the file extension with dot

    Declaration
    public string Extension { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    MailButton

    Get the mail-button instance

    Declaration
    protected Button MailButton { get; }
    Property Value
    Type Description
    Button
    | Improve this Doc View Source

    OriginalDocument

    Declaration
    public virtual byte[] OriginalDocument { get; protected set; }
    Property Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    PageNumberChangedProgramatically

    page number changed within the code

    Declaration
    protected bool PageNumberChangedProgramatically { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    PreparedDocument

    Declaration
    public virtual byte[] PreparedDocument { get; protected set; }
    Property Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    PrintButton

    Get the print button instance

    Declaration
    protected Button PrintButton { get; }
    Property Value
    Type Description
    Button
    | Improve this Doc View Source

    SaveButton

    Get the save-button instance

    Declaration
    protected Button SaveButton { get; }
    Property Value
    Type Description
    Button
    | Improve this Doc View Source

    Viewer

    Viewer instance

    Declaration
    public GdViewer Viewer { get; set; }
    Property Value
    Type Description
    GdViewer

    Methods

    | Improve this Doc View Source

    AfterPageChanged()

    gets called after the current page changed, used to control default document viewer behavior

    Declaration
    protected virtual void AfterPageChanged()
    | Improve this Doc View Source

    Clear()

    Clear the viewer

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Dispose()

    Dispose object and free viewer memory

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    HideAnnotationUI()

    Declaration
    public void HideAnnotationUI()
    | Improve this Doc View Source

    OnAfterDocumentChange()

    Document is loaded into the viewer

    Declaration
    protected virtual void OnAfterDocumentChange()
    | Improve this Doc View Source

    OnCurrentPageChanged()

    called when the current page textbox changed

    Declaration
    protected virtual void OnCurrentPageChanged()
    | Improve this Doc View Source

    OnPageChanged(Int32, Int32)

    Declaration
    protected void OnPageChanged(int oldPageNumber, int newPageNumber)
    Parameters
    Type Name Description
    System.Int32 oldPageNumber
    System.Int32 newPageNumber
    | Improve this Doc View Source

    OnPageEnd()

    display last page

    Declaration
    protected virtual void OnPageEnd()
    | Improve this Doc View Source

    OnPageLeft()

    display previous page

    Declaration
    protected virtual void OnPageLeft()
    | Improve this Doc View Source

    OnPageRight()

    display next page

    Declaration
    protected virtual void OnPageRight()
    | Improve this Doc View Source

    OnPageStart()

    display first page

    Declaration
    protected virtual void OnPageStart()
    | Improve this Doc View Source

    OnPrint()

    Print current document

    Declaration
    protected virtual void OnPrint()
    | Improve this Doc View Source

    OnSave()

    Save

    Declaration
    protected virtual void OnSave()
    | Improve this Doc View Source

    OnSendMail()

    Send mail

    Declaration
    protected virtual void OnSendMail()
    | Improve this Doc View Source

    Show(Byte[], String, Guid, String, Byte[])

    Show a document in the viewer and enable annotations

    Declaration
    public void Show(byte[] blob, string fileType, Guid blobId, string viewername, byte[] originalDocument = null)
    Parameters
    Type Name Description
    System.Byte[] blob
    System.String fileType
    Guid blobId
    System.String viewername

    viewername

    System.Byte[] originalDocument
    | Improve this Doc View Source

    Show(Byte[], String, Byte[])

    Show a document in the viewer

    Declaration
    public void Show(byte[] viewerPreparedDocument, string extension, byte[] originalDocument)
    Parameters
    Type Name Description
    System.Byte[] viewerPreparedDocument

    Document as byte-array

    System.String extension

    Extension as string

    System.Byte[] originalDocument

    Original document

    | Improve this Doc View Source

    ShowAnnotationUI()

    Declaration
    public void ShowAnnotationUI()

    Events

    | Improve this Doc View Source

    PageChangedEvent

    fires when the page of the document changed

    Declaration
    public event DocumentViewerBase.PageChangedEventHandler PageChangedEvent
    Event Type
    Type Description
    DocumentViewerBase.PageChangedEventHandler

    Implements

    IDocumentViewer
    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx