CustomProjectPropertyCollection

Inheritance: java.lang.Object, com.aspose.tasks.PropertyCollection, com.aspose.tasks.PropertyKeyedCollection

public final class CustomProjectPropertyCollection extends PropertyKeyedCollection<CustomProjectProperty>

Represents a collection of custom project properties.

Constructors

ConstructorDescription
CustomProjectPropertyCollection()Initializes a new instance of the CustomProjectPropertyCollection class.

Methods

MethodDescription
add(String name, boolean value)Creates a new custom property.
add(String name, double value)Creates a new custom property.
add(String name, String value)Creates a new custom property.
add(String name, Date value)Creates a new custom property.
clear()Clears the PropertyCollection.
isReadOnly()Gets a value indicating whether this collection is read-only; otherwise, false.
remove(String name)Removes a property with the specified name from the collection.

CustomProjectPropertyCollection()

public CustomProjectPropertyCollection()

Initializes a new instance of the CustomProjectPropertyCollection class.

add(String name, boolean value)

public final CustomProjectProperty add(String name, boolean value)

Creates a new custom property.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of the property.
valuebooleanThe newly created property object value.

Returns: CustomProjectProperty - The newly created property object.

add(String name, double value)

public final CustomProjectProperty add(String name, double value)

Creates a new custom property.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of the property.
valuedoubleThe newly created property object value.

Returns: CustomProjectProperty - The newly created property object.

add(String name, String value)

public final CustomProjectProperty add(String name, String value)

Creates a new custom property.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of the property.
valuejava.lang.StringThe newly created property object value.

Returns: CustomProjectProperty - The newly created property object.

add(String name, Date value)

public final CustomProjectProperty add(String name, Date value)

Creates a new custom property.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of the property.
valuejava.util.DateThe newly created property object value.

Returns: CustomProjectProperty - The newly created property object.

clear()

public final void clear()

Clears the PropertyCollection.

isReadOnly()

public boolean isReadOnly()

Gets a value indicating whether this collection is read-only; otherwise, false.

Returns: boolean - a value indicating whether this collection is read-only; otherwise, false.

remove(String name)

public final boolean remove(String name)

Removes a property with the specified name from the collection.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe case-insensitive name of the property.

Returns: boolean - True if the element is successfully found and removed; otherwise, false.