[]
Base class for the CustomPropertyCollection and BuiltInPropertyCollection
public class DocumentPropertyCollection : IEnumerable<DocumentProperty>, IEnumerable
Returns the number of properties in the collection.
public int Count { get; }
Gets a document property by the case-insensitive name.
public DocumentProperty this[string name] { get; }
name
stringThe case-insensitive name of the property.
A DocumentProperty with the specified name.
Gets whether a property with specified name exists in the document.
public bool Contains(string name)
name
stringA property name to check.
true if a property with specified name exists in the document, otherwise false.
Gets a document property by the case-insensitive name.
public bool TryGetValue(string name, out DocumentProperty property)
name
stringThe case-insensitive name of the property.
property
DocumentPropertyWhen this method returns, contains the property with the specified name, if the property with specified name is found; otherwise, null.
true if the collection contains a property with the specified name; otherwise, false.