Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / FontInfoCollection Class / TryGetValue Method
The font primary name.
OUT: if this method returns true, contains the font with the specified primary name, otherwise a null reference (Nothing in Visual Basic).

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

    Parameters

    name
    The font primary name.
    item
    OUT: if this method returns true, contains the font with the specified primary name, otherwise a null reference (Nothing in Visual Basic).

    Return Value

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