Class DocumentPropertyCollection
Inheritance
DocumentPropertyCollection
Assembly: DRIT.Presentation.dll
Syntax
public class DocumentPropertyCollection : IEnumerable<DocumentProperty>, IEnumerable
Properties
Count
Returns the number of sections.
Declaration
public int Count { get; }
Property Value
this[int]
Returns the section at the given zero-based index.
Declaration
public DocumentProperty this[int index] { get; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
this[string]
Returns the section with the given name.
Declaration
public DocumentProperty this[string name] { get; }
Parameters
| Type |
Name |
Description |
| string |
name |
|
Property Value
Exceptions
Methods
Add(string, CustomPropertyType, string)
Adds a new section with the given name and returns it.
Declaration
public DocumentProperty Add(string name, CustomPropertyType type, string value)
Parameters
Returns
Exceptions
| Type |
Condition |
| ArgumentException |
Thrown when a section with the same name already exists.
|
Clear()
Removes all entries from this document property collection.
Declaration
Contains(string)
Returns true if a custom property with the given name exists.
Declaration
public bool Contains(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
GetEnumerator()
Returns an enumerator that iterates through this collection.
Declaration
public IEnumerator<DocumentProperty> GetEnumerator()
Returns
Remove(DocumentProperty)
Removes the specified custom property.
Returns true if found and removed.
Declaration
public bool Remove(DocumentProperty customProperty)
Parameters
Returns
Remove(string)
Removes the section with the given name.
Returns true if the section was found and removed.
Declaration
public bool Remove(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
TryGetByName(string, out DocumentProperty)
Tries to find a section by name. Returns false when not found.
Declaration
public bool TryGetByName(string name, out DocumentProperty customProperty)
Parameters
Returns
Implements