EmfSetTextAlign Class

Summary: The EMR_SETTEXTALIGN record specifies text alignment.

Module: aspose.imaging.fileformats.emf.emf.records

Full Name: aspose.imaging.fileformats.emf.emf.records.EmfSetTextAlign

Inheritance: EmfStateRecordType

Aspose.Imaging Version: 24.5.0

Constructors

NameDescription
EmfSetTextAlign()Initializes a new instance of the EmfSetTextAlign class.
EmfSetTextAlign(source)Initializes a new instance of the EmfSetTextAlign class.

Properties

NameTypeAccessDescription
sizeintr/wGets or sets the size of the record
text_alignment_modeintr/wGets or sets a 32-bit unsigned integer that specifies text alignment by
using a mask of text alignment flags. These are either WmfTextAlignmentModeFlags
([MS-WMF] section 2.1.2.3) for text with a horizontal baseline, or WmfVerticalTextAlignmentModeFlags
([MS-WMF] section 2.1.2.4) for text with a vertical
baseline. Only one value can be chosen from those that affect horizontal and vertical
alignment.
typeEmfRecordTyper/wGets or sets the type.

Methods

NameDescription
create_from_record(source)Initializes a new instance of the EmfRecord class.
create_from_type(type)Initializes a new instance of the EmfRecord class.

Constructor: EmfSetTextAlign()

 EmfSetTextAlign() 

Initializes a new instance of the EmfSetTextAlign class.

Constructor: EmfSetTextAlign(source)

 EmfSetTextAlign(source) 

Initializes a new instance of the EmfSetTextAlign class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

Method: create_from_record(source) [static]

 create_from_record(source) 

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

Returns

TypeDescription
EmfRecord

Method: create_from_type(type) [static]

 create_from_type(type) 

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
typeEmfRecordTypeThe record type.

Returns

TypeDescription
EmfRecord