Class MultiDocumentViewer
Viewer which can display multiple and different document containers the viewer is capable of loading the containers synchronous or asynchronous in multiple tasks
Inherited Members
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class MultiDocumentViewer : DocumentViewerBase, IDocumentViewer
Constructors
| Improve this Doc View SourceMultiDocumentViewer()
constructor
Declaration
public MultiDocumentViewer()
Properties
| Improve this Doc View SourceOriginalDocument
OriginalDocument is disabled in this viewer
Declaration
public override byte[] OriginalDocument { get; protected set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Overrides
| Improve this Doc View SourcePreparedDocument
PreparedDocument is disabled in this viewer
Declaration
public override byte[] PreparedDocument { get; protected set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Overrides
Methods
| Improve this Doc View SourceAddDocument(IDocumentContainer)
adds new documents to the viewer
Declaration
public virtual void AddDocument(IDocumentContainer docContainer)
Parameters
Type | Name | Description |
---|---|---|
IDocumentContainer | docContainer |
CleanUp()
gets called when the loading of all documents finished, or when the object gets disposed
Declaration
protected virtual void CleanUp()
Dispose()
Declaration
public void Dispose()
LoadContent(IDocumentContainer, Boolean)
loads the given content container
Declaration
protected virtual void LoadContent(IDocumentContainer container, bool forceSync = false)
Parameters
Type | Name | Description |
---|---|---|
IDocumentContainer | container | |
System.Boolean | forceSync | forces a synchronous loading |
LoadDocuments(Int32)
loads all documents
Declaration
public virtual void LoadDocuments(int tasksToLoad = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tasksToLoad | sets the amount of task for loading the containers, forces a synchronous if set to 0 |
OnAfterDocumentChange()
Declaration
protected override void OnAfterDocumentChange()
Overrides
| Improve this Doc View SourceOnCurrentPageChanged()
Declaration
protected override void OnCurrentPageChanged()
Overrides
| Improve this Doc View SourceOnPageLeft()
Declaration
protected override void OnPageLeft()
Overrides
| Improve this Doc View SourceOnPageRight()
Declaration
protected override void OnPageRight()
Overrides
Implements
IDisposable