public final class CustomProjectPropertyCollection extends PropertyKeyedCollection<CustomProjectProperty>
Represents a collection of custom project properties.
Constructor and Description |
---|
CustomProjectPropertyCollection()
Initializes a new instance of the
CustomProjectPropertyCollection class. |
Modifier and Type | Method and Description |
---|---|
CustomProjectProperty |
add(String name,
boolean value)
Creates a new custom property.
|
CustomProjectProperty |
add(String name,
Date value)
Creates a new custom property.
|
CustomProjectProperty |
add(String name,
double value)
Creates a new custom property.
|
CustomProjectProperty |
add(String name,
String value)
Creates a new custom property.
|
void |
clear()
Clears the PropertyCollection.
|
boolean |
isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
|
boolean |
remove(String name)
Removes a property with the specified name from the collection.
|
add, addAll, contains, contains, containsAll, get_Item, getNames, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
iterator
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream
public CustomProjectPropertyCollection()
Initializes a new instance of the CustomProjectPropertyCollection
class.
public final CustomProjectProperty add(String name, String value)
Creates a new custom property.
name
- The name of the property.value
- The newly created property object value.public final CustomProjectProperty add(String name, boolean value)
Creates a new custom property.
name
- The name of the property.value
- The newly created property object value.public final CustomProjectProperty add(String name, double value)
Creates a new custom property.
name
- The name of the property.value
- The newly created property object value.public final CustomProjectProperty add(String name, Date value)
Creates a new custom property.
name
- The name of the property.value
- The newly created property object value.public final void clear()
Clears the PropertyCollection.
clear
in interface Collection<CustomProjectProperty>
clear
in class PropertyKeyedCollection<CustomProjectProperty>
public boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
isReadOnly
in class PropertyKeyedCollection<CustomProjectProperty>
public final boolean remove(String name)
Removes a property with the specified name from the collection.
name
- The case-insensitive name of the property.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.