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
Constructor | Description |
---|---|
CustomProjectPropertyCollection() | Initializes a new instance of the CustomProjectPropertyCollection class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | The name of the property. |
value | boolean | The 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | The name of the property. |
value | double | The 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | The name of the property. |
value | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | The name of the property. |
value | java.util.Date | The 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | The case-insensitive name of the property. |
Returns: boolean - True if the element is successfully found and removed; otherwise, false.