BaseFeatureAttributeCollection Class
Contents
[
Hide
]Summary: A FeatureAttributeCollection defines what attributes are available for a Feature.
Module: aspose.gis
Full Name: aspose.gis.BaseFeatureAttributeCollection
Aspose.PSD Version: 25.9.0
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| count | int | r | Gets the number of attributes in a Feature. |
| is_locked | bool | r | Gets a value indicating whether this attribute collection is locked. |
Methods
| Name | Description |
|---|---|
| add(attribute) | Adds an attribute to the collection. |
| contains(name) | Determines whether the attribute collection contains an attribute with the specified name. |
| index_of(name) | Searches for the attribute and returns the its zero-based index. |
| lock() | Locks this attribute collection to prevent further modifications. |
| remove(index) | Removes the attribute from the collection. |
| remove(name) | Removes the attribute from the collection. |
Method: add(attribute)
add(attribute)
Adds an attribute to the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute | FeatureAttribute | The attribute to add. |
Method: contains(name)
contains(name)
Determines whether the attribute collection contains an attribute with the specified name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of the attribute. |
Returns
| Type | Description |
|---|---|
| bool |
Method: index_of(name)
index_of(name)
Searches for the attribute and returns the its zero-based index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of the attribute. |
Returns
| Type | Description |
|---|---|
| int | The zero-based index of the attribute within the collection, if found; otherwise, –1. |
Method: remove(index)
remove(index)
Removes the attribute from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | Index of the attribute. |
Method: remove(name)
remove(name)
Removes the attribute from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of the attribute. |