Document Solutions for Word
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / StyleCollection Class / TryGetValue Method
The style name.
When this method returns, contains the style with the specified name or alias if the style was found, or null otherwise.

In This Topic
    TryGetValue Method (StyleCollection)
    In This Topic
    Tries to get a style from the collection by its name.
    Syntax
    'Declaration
     
    Public Function TryGetValue( _
       ByVal name As System.String, _
       ByRef style As Style _
    ) As System.Boolean
    public System.bool TryGetValue( 
       System.string name,
       out Style style
    )

    Parameters

    name
    The style name.
    style
    When this method returns, contains the style with the specified name or alias if the style was found, or null otherwise.

    Return Value

    True if the style with the specified name or alias was found, false otherwise.
    See Also