Constructs a new LocalPartRetriever.
Namespace: PDFTron.SilverDox.IO
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010
Syntax
C# |
public LocalPartRetriever(
Stream stream,
bool backgroundLoadDocument
)
|
Visual Basic |
Public Sub New ( _
stream As Stream, _
backgroundLoadDocument As Boolean _
)
|
Visual C++ |
public:
LocalPartRetriever(
Stream^ stream,
bool backgroundLoadDocument
)
|
Parameters
-
stream
- Type: System.IO..::..Stream
A stream to a .xod file, typically acquired from a local file using an open file dialog.
-
backgroundLoadDocument
- Type: System..::..Boolean
[Missing <param name="backgroundLoadDocument"/> documentation for "M:PDFTron.SilverDox.IO.LocalPartRetriever.#ctor(System.IO.Stream,System.Boolean)"]
Remarks
Examples
CopyC#
private LocalPartRetriever MyRetriever;
public void LoadLocalDocument()
{
OpenFileDialog dlg = new OpenFileDialog();
dlg.Multiselect = false;
dlg.Filter = "XOD Files (*.xod)|*.xod";
bool ok = (bool)dlg.ShowDialog();
if (ok)
{
if (MyRetriever as LocalPartRetriever != null)
((LocalPartRetriever) MyRetriever).Dispose();
FileStream fileStream = dlg.File.OpenRead();
MyRetriever = new LocalPartRetriever(fileStream);
MyDocumentViewer.LoadAsync(MyRetriever, OnLoadAsyncCallback);
}
}
See Also