TryGetValue Method (FontInfoCollection)
Tries to get a font from the collection by its primary name.
'Declaration
Public Function TryGetValue( _
ByVal As System.String, _
ByRef As FontInfo _
) As System.Boolean
public System.bool TryGetValue(
System.string ,
out FontInfo
)
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.