Class MetaObject
Base class for printable objects inside a MetaPage
Assembly: Reportman.Drawing.dll
public abstract class MetaObject
Constructors
View Source
Declaration
Fields
View Source
Annotation position in MetaPage strings pool
Declaration
Field Value
View Source
Declaration
Field Value
View Source
height of the object in twips
Declaration
Field Value
View Source
Unique identifier used by MetaFile search functions
Declaration
Field Value
View Source
Left position of the object in twips
Declaration
Field Value
View Source
Declaration
public MetaObjectType MetaType
Field Value
View Source
Declaration
public const int RECORD_OFFSET_3 = 17
Field Value
View Source
Declaration
public const int RECORD_OFFSET_4 = 25
Field Value
View Source
Declaration
public const int RECORD_SIZE_3 = 66
Field Value
View Source
Record size, all objects share the same size
Declaration
public const int RECORD_SIZE_4 = 74
Field Value
View Source
Top position of the object in twips
Declaration
Field Value
View Source
Width of the object in twips
Declaration
Field Value
View Source
Declaration
protected static byte[] emptybuf
Field Value
Methods
View Source
Creates a MetaObject, loading it from a binary buffer
Declaration
public static MetaObject CreateFromBuf(byte[] buf, int index, int ver)
Parameters
| Type |
Name |
Description |
| byte[] |
buf |
Buffer containing information in binary format
|
| int |
index |
Index to begin read in the buffer
|
| int |
ver |
|
Returns
| Type |
Description |
| MetaObject |
Create a MetaObject using the information in the buffer
|
View Source
Fill the values of a MetaObject, loading it from a binary buffer
Declaration
public virtual void FillFromBuf(byte[] buf, int index, int ver)
Parameters
| Type |
Name |
Description |
| byte[] |
buf |
Buffer containing information in binary format
|
| int |
index |
Index to begin read in the buffer
|
| int |
ver |
|
View Source
GetIntHorizAlignment(TextAlignType)
Declaration
public static int GetIntHorizAlignment(TextAlignType Alignment)
Parameters
Returns
View Source
GetIntVertAlignment(TextAlignVerticalType)
Declaration
public static int GetIntVertAlignment(TextAlignVerticalType VAlignment)
Parameters
Returns
View Source
Declaration
public static int GetRECORD_OFFSET(int ver)
Parameters
| Type |
Name |
Description |
| int |
ver |
|
Returns
View Source
Declaration
public static int GetRECORD_SIZE(int ver)
Parameters
| Type |
Name |
Description |
| int |
ver |
|
Returns
View Source
Save the information of the object into a stream
Declaration
public virtual void SaveToStream(Stream astream, int ver)
Parameters
| Type |
Name |
Description |
| Stream |
astream |
Destination stream
|
| int |
ver |
|