Version

FormatStringFromFontStyle Method

Returns a string which can be used by the ApplyStyle method to apply a font style, i.e., bold, italic, etc.
Syntax
'Declaration
 
Public Shared Function FormatStringFromFontStyle( _
   ByVal fontStyle As FontStyle _
) As String
public static string FormatStringFromFontStyle( 
   FontStyle fontStyle
)

Parameters

fontStyle
The System.Drawing.FontStyle value for which a string value is to be returned.

Return Value

A string formatted for compatibility with the ApplyStyle method.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also