GdPicture.NET Reference Guide
FontIsStyleAvailable Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : FontIsStyleAvailable Method
The font family name. ("Arial" or "Helvetica"...).
A member of the FontStyle enumeration.
Determines whether the specified style is available for this font family.
Syntax
'Declaration
 
Public Function FontIsStyleAvailable( _
   ByVal FontName As String, _
   ByVal FontStyle As FontStyle _
) As Boolean
public bool FontIsStyleAvailable( 
   string FontName,
   FontStyle FontStyle
)
public function FontIsStyleAvailable( 
    FontName: String;
    FontStyle: FontStyle
): Boolean; 
public function FontIsStyleAvailable( 
   FontName : String,
   FontStyle : FontStyle
) : boolean;
public: bool FontIsStyleAvailable( 
   string* FontName,
   FontStyle FontStyle
) 
public:
bool FontIsStyleAvailable( 
   String^ FontName,
   FontStyle FontStyle
) 

Parameters

FontName
The font family name. ("Arial" or "Helvetica"...).
FontStyle
A member of the FontStyle enumeration.

Return Value

True if the font style is available else False.
Example
Determinning whether a certain font has a specified style
Dim oGdPictureImaging As New GdPictureImaging
Dim HasStyle As Boolean
HasStyle = oGdPictureImaging.FontIsStyleAvailable("Ariel", FontStyle.FontStyleRegular)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
FontGetName Method