[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FontInfoCollection.TryGetValue

TryGetValue Method

TryGetValue(string, out FontInfo)

Tries to get a font from the collection by its primary name.

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

The font primary name.

FontInfo item

OUT: if this method returns true, contains the font with the specified primary name, otherwise null.

Returns
Type Description
bool

true if a font with the specified primary name was found, otherwise false.