SensitivityLabelCollection

SensitivityLabelCollection class

Represents a collection of sensitivity labels applied to the document.

add

NameDescription
add (String, UUID, boolean, int)Adds the sensitivity label at the end of the collection.

Parameters:

NameTypeDescription
idStringThe id of sensitivity label.
siteIdUUIDThe Azure Active Directory (Azure AD) site identifier.
isEnabledbooleanFlag indicates whether the sensitivity label is enabled.
methodTypeintThe assignment function for the sensitivity label.

Returns: SensitivityLabel


add

NameDescription
add (SensitivityLabel)Adds a SensitivityLabel to the collection.

Parameters:

NameTypeDescription
labelSensitivityLabelThe SensitivityLabel object to be added at the end of the collection.

Returns: int

Error

ErrorCondition
ArgumentExceptionThrown when the sensitivity label with the same Id has already been added.

clear

NameDescription
clear ()Removes all elements from the collection.

copyTo

NameDescription
copyTo (com.aspose.slides.ISensitivityLabel[], int)Copies all elements from the collection to the specified array.

Parameters:

NameTypeDescription
arraycom.aspose.slides.ISensitivityLabel[]Target array.
indexintStarting index in the target array.

getCount

NameDescription
getCount ()Returns the number of elements in the collection. Read-only int.

Returns: int


get_Item

NameDescription
get_Item (int)Returns the sensitivity label by index.

Returns: SensitivityLabel


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


removeAt

NameDescription
removeAt (int)Removes the sensitivity label at the specified index.

Parameters:

NameTypeDescription
indexintIndex of the sensitivity label that should be deleted.