Class Viewer
Viewer class, must be inherited by every type of viewer controler
Inheritance
System.Object
Viewer
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class Viewer : UserControl
Methods
| Improve this Doc View SourceLoad(Byte[], String)
Show a simple blob in the viewer
Declaration
public virtual void Load(byte[] blob, string fileType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | blob | Blob content as byte array |
| System.String | fileType | file type, ending or mime type |
Load(Byte[], String, Guid)
Show a simple blob in the viewer
Declaration
public virtual void Load(byte[] blob, string fileType, Guid blobId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | blob | Blob content as byte array |
| System.String | fileType | file type, ending or mime type |
| Guid | blobId | Blob id |
UseViewer(String)
Proof, wether the current viewer support the fiven file type
Declaration
public virtual bool UseViewer(string fileType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileType | File tpye as string |
Returns
| Type | Description |
|---|---|
| System.Boolean | True, if the viewer supprt the file type |