[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.StyleCollection.TryGetValue

TryGetValue Method

TryGetValue(string, out Style)

Tries to get a style from the collection by its name.

Declaration
public bool TryGetValue(string name, out Style style)
Public Function TryGetValue(name As String, ByRef style As Style) As Boolean
Parameters
Type Name Description
string name

The style name.

Style style

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

Returns
Type Description
bool

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