ObjectArrayStructure Class

Summary: Defines the ObjectArrayStructure class that usually holds UnitArrayStructure array.
It is used in the PSD file resources, such as PlLd Resource and SoLd Resource.

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

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

Inheritance: OSTypeStructure

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
ObjectArrayStructure(key, key_name, class_id, class_name, structures)Initializes a new instance of the ObjectArrayStructure class.
ObjectArrayStructure(key_name, class_id_name, structures)Initializes a new instance of the ObjectArrayStructure class.

Properties

NameTypeAccessDescription
STRUCTURE_KEY [static]intrIdentifies the ‘ObAr’ structure key.
class_idClassIDr/wGets or sets the object array class ID.
class_namestringr/wGets or sets the object array class name.
keyintrGets the object array structure key.
key_nameClassIDr/wGets or sets the key name.
lengthintrGets the OSTypeStructure length in bytes.
structure_countintrGets the object array substructure count.
structuresOSTypeStructure[]r/wGets or sets a copy of an array of structures.

Methods

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

Constructor: ObjectArrayStructure(key, key_name, class_id, class_name, structures)

 ObjectArrayStructure(key, key_name, class_id, class_name, structures) 

Initializes a new instance of the ObjectArrayStructure class.

Parameters:

ParameterTypeDescription
keyintThe integer key.
key_nameClassIDThe key name.
class_idClassIDThe class identifier.
class_namestringName of the class.
structuresOSTypeStructure[]The structures.

Constructor: ObjectArrayStructure(key_name, class_id_name, structures)

 ObjectArrayStructure(key_name, class_id_name, structures) 

Initializes a new instance of the ObjectArrayStructure class.

Parameters:

ParameterTypeDescription
key_namestringName of the key.
class_id_namestringName of the class identifier.
structuresOSTypeStructure[]The structures.

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 structure to the specified stream container.

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.