SensitivityLabelCollection
SensitivityLabelCollection class
Represents a collection of sensitivity labels applied to the document.
add
| Name | Description |
|---|
| add (String, UUID, boolean, int) | Adds the sensitivity label at the end of the collection. |
Parameters:
| Name | Type | Description |
|---|
| id | String | The id of sensitivity label. |
| siteId | UUID | The Azure Active Directory (Azure AD) site identifier. |
| isEnabled | boolean | Flag indicates whether the sensitivity label is enabled. |
| methodType | int | The assignment function for the sensitivity label. |
Returns:
SensitivityLabel
add
Parameters:
| Name | Type | Description |
|---|
| label | SensitivityLabel | The SensitivityLabel object to be added at the end of the collection. |
Returns:
int
Error
| Error | Condition |
|---|
| ArgumentException | Thrown when the sensitivity label with the same Id has already been added. |
clear
| Name | Description |
|---|
| clear () | Removes all elements from the collection. |
copyTo
| Name | Description |
|---|
| copyTo (com.aspose.slides.ISensitivityLabel[], int) | Copies all elements from the collection to the specified array. |
Parameters:
| Name | Type | Description |
|---|
| array | com.aspose.slides.ISensitivityLabel[] | Target array. |
| index | int | Starting index in the target array. |
getCount
| Name | Description |
|---|
| getCount () | Returns the number of elements in the collection. Read-only int. |
Returns:
int
get_Item
| Name | Description |
|---|
| get_Item (int) | Returns the sensitivity label by index. |
Returns:
SensitivityLabel
iterator
| Name | Description |
|---|
| iterator () | Returns an enumerator that iterates through the collection. |
Returns:
removeAt
| Name | Description |
|---|
| removeAt (int) | Removes the sensitivity label at the specified index. |
Parameters:
| Name | Type | Description |
|---|
| index | int | Index of the sensitivity label that should be deleted. |