Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word.Fields Namespace / TocStyleLevelCollection Class / TryGetStyle Method
The style name.
OUT: the TocStyleLevel associated with name.

In This Topic
    TryGetStyle Method
    In This Topic
    Tries to get the TocStyleLevel associated with a specified style name.
    Syntax
    'Declaration
     
    Public Function TryGetStyle( _
       ByVal name As System.String, _
       ByRef item As TocStyleLevel _
    ) As System.Boolean
    public System.bool TryGetStyle( 
       System.string name,
       out TocStyleLevel item
    )

    Parameters

    name
    The style name.
    item
    OUT: the TocStyleLevel associated with name.

    Return Value

    true if the collection contains a TocStyleLevel associated with name, false otherwise.
    See Also