Package com.grapecity.documents.excel
Interface IDocumentPropertyCollection
- All Known Subinterfaces:
IBuiltInDocumentPropertyCollection,ICustomDocumentPropertyCollection
public interface IDocumentPropertyCollection
Represents a collection of document properties.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all properties from the collection.booleanDetermines whether the document property with specified name is contained inIDocumentPropertyCollection.get(int index) Returns theIDocumentPropertyobject from a collection.Returns theIDocumentPropertyobject with the specified name.intgetCount()Returns the number of document property in the collection.intGets the index of a property by name.voidRemoves a property with the specified name from the collection.voidremoveAt(int index) Removes a property at the specified index.
-
Method Details
-
getCount
int getCount()Returns the number of document property in the collection. -
get
Returns theIDocumentPropertyobject with the specified name.- Parameters:
name- Specifies the name of an element in the collection.
-
get
Returns theIDocumentPropertyobject from a collection.- Parameters:
index- Specifies the index of an element in the collection.
-
contains
Determines whether the document property with specified name is contained inIDocumentPropertyCollection.- Parameters:
name- The document property name.- Returns:
- Whether the document property name is contained.
-
clear
void clear()Removes all properties from the collection. -
indexOf
Gets the index of a property by name.- Parameters:
name- The case-insensitive name of the property.- Returns:
- The zero based index. Negative value if not found.
-
remove
Removes a property with the specified name from the collection.- Parameters:
name- The case-insensitive name of the property.
-
removeAt
void removeAt(int index) Removes a property at the specified index.- Parameters:
index- The zero based index.
-