Class NSDocumentPreview
Document data intended for preview purposes. Carrier object for DocumentPreview.
Syntax
Constructors
NSDocumentPreview()
Initializes a new instance of the NSDocumentPreview class.
Declaration
Methods
GetName()
Declaration
Returns
Type |
Description |
String |
The documents name.
|
Examples
NSDocumentPreview thing;
String name = thing.GetName();
GetSize()
Declaration
Returns
Type |
Description |
Integer |
Size of the stream.
|
Examples
NSDocumentPreview thing;
Integer size = thing.GetSize();
GetStream()
Declaration
Returns
Type |
Description |
NSStream |
Document data.
|
Examples
NSDocumentPreview thing;
NSStream stream = thing.GetStream();
GetType()
Declaration
Returns
Type |
Description |
String |
The mimetype of the stream.
|
Examples
NSDocumentPreview thing;
String type = thing.GetType();
SetName(String)
Declaration
Void SetName(String name)
Parameters
Type |
Name |
Description |
String |
name |
The documents name.
|
Returns
Examples
NSDocumentPreview thing;
String name;
thing.SetName(name);
SetSize(Integer)
Declaration
Void SetSize(Integer size)
Parameters
Type |
Name |
Description |
Integer |
size |
Size of the stream.
|
Returns
Examples
NSDocumentPreview thing;
Integer size;
thing.SetSize(size);
SetStream(NSStream)
Declaration
Void SetStream(NSStream stream)
Parameters
Type |
Name |
Description |
NSStream |
stream |
Document data.
|
Returns
Examples
NSDocumentPreview thing;
NSStream stream;
thing.SetStream(stream);
SetType(String)
Declaration
Void SetType(String type)
Parameters
Type |
Name |
Description |
String |
type |
The mimetype of the stream.
|
Returns
Examples
NSDocumentPreview thing;
String type;
thing.SetType(type);