Class MetaObject
Base class for printable objects inside a MetaPage
Assembly: Reportman.Drawing.dll
public abstract class MetaObject
Constructors
Declaration
Fields
Annotation position in MetaPage strings pool
Declaration
Field Value
Declaration
Field Value
height of the object in twips
Declaration
Field Value
Unique identifier used by MetaFile search functions
Declaration
Field Value
Left position of the object in twips
Declaration
Field Value
Declaration
public MetaObjectType MetaType
Field Value
Declaration
public const int RECORD_OFFSET_3 = 17
Field Value
Declaration
public const int RECORD_OFFSET_4 = 25
Field Value
Declaration
public const int RECORD_SIZE_3 = 66
Field Value
Record size, all objects share the same size
Declaration
public const int RECORD_SIZE_4 = 74
Field Value
Top position of the object in twips
Declaration
Field Value
Width of the object in twips
Declaration
Field Value
Declaration
protected static byte[] emptybuf
Field Value
Methods
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
|
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 |
|
GetIntHorizAlignment(TextAlignType)
Declaration
public static int GetIntHorizAlignment(TextAlignType Alignment)
Parameters
Returns
GetIntVertAlignment(TextAlignVerticalType)
Declaration
public static int GetIntVertAlignment(TextAlignVerticalType VAlignment)
Parameters
Returns
Declaration
public static int GetRECORD_OFFSET(int ver)
Parameters
| Type |
Name |
Description |
| int |
ver |
|
Returns
Declaration
public static int GetRECORD_SIZE(int ver)
Parameters
| Type |
Name |
Description |
| int |
ver |
|
Returns
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 |
|