Search Results for

    Show / Hide Table of Contents

    Class ViewerHelper

    Contains utility methods for showing documents

    Inheritance
    System.Object
    ViewerHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Framework.Extension.UI
    Assembly: Simplic.Framework.Extension.dll
    Syntax
    public static class ViewerHelper

    Methods

    | Improve this Doc View Source

    CreateDocumentViewer(Byte[], Guid, ContentType, String, String)

    Creates a new document viewer pane showing the document

    Declaration
    public static DefaultRadPane CreateDocumentViewer(byte[] blob, Guid blobId, ContentType type, string viewerName, string title)
    Parameters
    Type Name Description
    System.Byte[] blob

    Document blob

    System.Guid blobId

    ID of the document blob

    ContentType type

    Type of the document

    System.String viewerName

    Name of the viewer pane

    System.String title

    Title of the viewer

    Returns
    Type Description
    DefaultRadPane

    The document viewer pane

    | Improve this Doc View Source

    CreateDocumentViewer(Byte[], Guid, IDictionary<String, Object>, String, String)

    Creates a new document viewer pane showing the document

    Declaration
    public static DefaultRadPane CreateDocumentViewer(byte[] blob, Guid blobId, IDictionary<string, object> parameter, string viewerName, string title)
    Parameters
    Type Name Description
    System.Byte[] blob

    Document blob

    System.Guid blobId

    ID of the document blob

    System.Collections.Generic.IDictionary<System.String, System.Object> parameter

    Parameter (fileextension/mimetype/...)

    System.String viewerName

    Name of the viewer pane

    System.String title

    Title of the document viewer

    Returns
    Type Description
    DefaultRadPane

    The document viewer pane

    | Improve this Doc View Source

    CreateDocumentViewer(Byte[], Guid, IDictionary<String, String>, String, String)

    Creates a new document viewer pane showing the document

    Declaration
    public static DefaultRadPane CreateDocumentViewer(byte[] blob, Guid blobId, IDictionary<string, string> parameter, string viewerName, string title)
    Parameters
    Type Name Description
    System.Byte[] blob

    Document blob

    System.Guid blobId

    ID of the document blob

    System.Collections.Generic.IDictionary<System.String, System.String> parameter

    Parameter (fileextension/mimetype/...)

    System.String viewerName

    Name of the viewer pane

    System.String title

    Title of the document viewer

    Returns
    Type Description
    DefaultRadPane

    The document viewer pane

    | Improve this Doc View Source

    ParseFileExtension(String)

    Parses a file extension into the corresponding ContentType

    Declaration
    public static ContentType ParseFileExtension(string fileExtension)
    Parameters
    Type Name Description
    System.String fileExtension
    Returns
    Type Description
    ContentType
    | Improve this Doc View Source

    ParseMime(String)

    Parses a mime type into the corresponding ContentType

    Declaration
    public static ContentType ParseMime(string mime)
    Parameters
    Type Name Description
    System.String mime
    Returns
    Type Description
    ContentType
    | Improve this Doc View Source

    PreviewDocument(Guid, IDictionary<String, String>, String)

    Opens a new document viewer

    Declaration
    public static void PreviewDocument(Guid documentGuid, IDictionary<string, string> parameter, string name)
    Parameters
    Type Name Description
    System.Guid documentGuid
    System.Collections.Generic.IDictionary<System.String, System.String> parameter
    System.String name
    | Improve this Doc View Source

    PreviewDocuments(GridFunctionParameter)

    Preview documents (Grid function)

    Declaration
    public static void PreviewDocuments(GridFunctionParameter parameter)
    Parameters
    Type Name Description
    GridFunctionParameter parameter
    | Improve this Doc View Source

    SaveDocumentHistory(GridFunctionParameter)

    Saves files from the document history

    Declaration
    public static void SaveDocumentHistory(GridFunctionParameter parameter)
    Parameters
    Type Name Description
    GridFunctionParameter parameter
    | Improve this Doc View Source

    ShowDocument(Byte[], IDictionary<String, Object>)

    Show Document in the Viewer on the right

    Declaration
    public static void ShowDocument(byte[] blob, IDictionary<string, object> parameter)
    Parameters
    Type Name Description
    System.Byte[] blob

    Byte-Array

    System.Collections.Generic.IDictionary<System.String, System.Object> parameter

    Parameter (fileextension/mimetype/...)

    | Improve this Doc View Source

    ShowDocument(Byte[], IDictionary<String, Object>, Guid, String)

    Show Document in the Viewer

    Declaration
    public static void ShowDocument(byte[] blob, IDictionary<string, object> parameter, Guid blobId, string viewerName)
    Parameters
    Type Name Description
    System.Byte[] blob

    Byte-Array

    System.Collections.Generic.IDictionary<System.String, System.Object> parameter

    Parameter (fileextension/mimetype/...)

    System.Guid blobId

    ID of the document blob

    System.String viewerName

    Viewer name

    | Improve this Doc View Source

    ShowDocument(Byte[], IDictionary<String, String>)

    Show Document in the Viewer on the right

    Declaration
    public static void ShowDocument(byte[] blob, IDictionary<string, string> parameter = null)
    Parameters
    Type Name Description
    System.Byte[] blob

    Byte-Array

    System.Collections.Generic.IDictionary<System.String, System.String> parameter

    Parameter (fileextension/mimetype/...)

    | Improve this Doc View Source

    ShowDocumentHistory(GridFunctionParameter)

    Opens a dialog that shows all previous document versions

    Declaration
    public static void ShowDocumentHistory(GridFunctionParameter parameter)
    Parameters
    Type Name Description
    GridFunctionParameter parameter
    | Improve this Doc View Source

    ShowDocumentHistory(Guid, String)

    Opens a dialog that shows all previous document versions

    Declaration
    public static void ShowDocumentHistory(Guid documentGuid, string name = "")
    Parameters
    Type Name Description
    System.Guid documentGuid
    System.String name

    Name of the document

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