SensitivityLabelCollection

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.ISensitivityLabelCollection

public final class SensitivityLabelCollection extends DomObject<Presentation> implements ISensitivityLabelCollection

Represents a collection of sensitivity labels applied to the document.

Methods

MethodDescription
get_Item(int index)Returns the sensitivity label by index.
add(String id, UUID siteId, boolean isEnabled, int methodType)Adds the sensitivity label at the end of the collection.
add(ISensitivityLabel label)Adds a SensitivityLabel to the collection.
removeAt(int index)Removes the sensitivity label at the specified index.
clear()Removes all elements from the collection.
iterator()Returns an enumerator that iterates through the collection.
getCount()Returns the number of elements in the collection.
copyTo(ISensitivityLabel[] array, int index)Copies all elements from the collection to the specified array.

get_Item(int index)

public final ISensitivityLabel get_Item(int index)

Returns the sensitivity label by index.

Parameters:

ParameterTypeDescription
indexint

Returns: ISensitivityLabel

add(String id, UUID siteId, boolean isEnabled, int methodType)

public final ISensitivityLabel add(String id, UUID siteId, boolean isEnabled, int methodType)

Adds the sensitivity label at the end of the collection.

Parameters:

ParameterTypeDescription
idjava.lang.StringThe id of sensitivity label.
siteIdjava.util.UUIDThe Azure Active Directory (Azure AD) site identifier.
isEnabledbooleanFlag indicates whether the sensitivity label is enabled.
methodTypeintThe assignment method for the sensitivity label.

Returns: ISensitivityLabel

add(ISensitivityLabel label)

public final int add(ISensitivityLabel label)

Adds a SensitivityLabel to the collection.

Parameters:

ParameterTypeDescription
labelISensitivityLabelThe SensitivityLabel object to be added at the end of the collection.

Returns: int - The index at which the SensitivityLabel was added.

removeAt(int index)

public final void removeAt(int index)

Removes the sensitivity label at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of the sensitivity label that should be deleted.

clear()

public final void clear()

Removes all elements from the collection.

iterator()

public final System.Collections.Generic.IGenericEnumerator<ISensitivityLabel> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ISensitivityLabel> - A System.Collections.Generic.IEnumerator1 that can be used to iterate through the collection.

getCount()

public final int getCount()

Returns the number of elements in the collection. Read-only int .

Returns: int

copyTo(ISensitivityLabel[] array, int index)

public final void copyTo(ISensitivityLabel[] array, int index)

Copies all elements from the collection to the specified array.

Parameters:

ParameterTypeDescription
arrayISensitivityLabel[]Target array.
indexintStarting index in the target array.