[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.CustomXmlPartCollection.TryGetValue

TryGetValue Method

TryGetValue(string, out CustomXmlPart)

Tries to get a custom xml part from the collection by its id.

Declaration
public bool TryGetValue(string id, out CustomXmlPart customXmlPart)
Public Function TryGetValue(id As String, ByRef customXmlPart As CustomXmlPart) As Boolean
Parameters
Type Name Description
string id

The custom xml part id.

CustomXmlPart customXmlPart

When this method returns true, contains the custom xml part with the specified id, or null otherwise.

Returns
Type Description
bool

True if the custom xml part with the specified id was found, false otherwise.