EnumeratedReferenceStructure Class

Summary: Enumerated reference structure.

Module: aspose.psd.fileformats.psd.layers.layerresources.typetoolinfostructures

Full Name: aspose.psd.fileformats.psd.layers.layerresources.typetoolinfostructures.EnumeratedReferenceStructure

Inheritance: EnumeratedDescriptorStructure

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
EnumeratedReferenceStructure(key_name, class_id, type_id, enum_name)Initializes a new instance of the EnumeratedReferenceStructure class.

Properties

NameTypeAccessDescription
ENUMERATED_STRUCTURE_KEY [static]intrIdentifies the structure key.
STRUCTURE_KEY [static]intrThe enumerated descriptor key.
class_idClassIDr/wGets or sets the class ID.
class_namestringr/wGets or sets the class name.
enum_nameClassIDr/wGets or sets the enum name.
keyintrGets the key.
key_nameClassIDr/wGets or sets the key name.
lengthintrGets the OSTypeStructure length in bytes.
type_idClassIDr/wGets or sets the type ID.

Methods

NameDescription
get_header_length()Gets the header length.
save(stream_container)Saves the data.
save_without_key_name(stream_container)Saves the structure to the specified stream container.

Constructor: EnumeratedReferenceStructure(key_name, class_id, type_id, enum_name)

 EnumeratedReferenceStructure(key_name, class_id, type_id, enum_name) 

Initializes a new instance of the EnumeratedReferenceStructure class.

Parameters:

ParameterTypeDescription
key_nameClassIDThe key name.
class_idClassIDThe class ID.
type_idClassIDThe type ID.
enum_nameClassIDThe enum name.

Method: get_header_length()

 get_header_length() 

Gets the header length.

Returns

TypeDescription
intThe header length

Method: save(stream_container)

 save(stream_container) 

Saves the data.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.

Method: save_without_key_name(stream_container)

 save_without_key_name(stream_container) 

Saves the structure to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.