[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.DocumentPropertyCollection.TryGetValue

TryGetValue Method

TryGetValue(string, out DocumentProperty)

Gets a document property by the case-insensitive name.

Declaration
public bool TryGetValue(string name, out DocumentProperty property)
Public Function TryGetValue(name As String, ByRef [property] As DocumentProperty) As Boolean
Parameters
Type Name Description
string name

The case-insensitive name of the property.

DocumentProperty property

When this method returns, contains the property with the specified name, if the property with specified name is found; otherwise, null.

Returns
Type Description
bool

true if the collection contains a property with the specified name; otherwise, false.