[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Fields.TocStyleLevelCollection.TryGetStyle

TryGetStyle Method

TryGetStyle(string, out TocStyleLevel)

Tries to get the TocStyleLevel associated with a specified style name.

Declaration
public bool TryGetStyle(string name, out TocStyleLevel item)
Public Function TryGetStyle(name As String, ByRef item As TocStyleLevel) As Boolean
Parameters
Type Name Description
string name

The style name.

TocStyleLevel item

OUT: the TocStyleLevel associated with name.

Returns
Type Description
bool

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