VisualStyleHelperGetFont Method
Gets the font of a visual style element, or , if no font is defined for the specified class and part.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static Font? GetFont(
string className,
IntPtr hwnd,
int part
)
Public Shared Function GetFont (
className As String,
hwnd As IntPtr,
part As Integer
) As Font
public:
static Font^ GetFont(
String^ className,
IntPtr hwnd,
int part
)
static member GetFont :
className : string *
hwnd : IntPtr *
part : int -> Font
- className String
- The class name of the visual style element.
- hwnd IntPtr
- A window handle to use a possibly instance-specific scaling; otherwise, IntPtr.Zero.
- part Int32
- An integer identifier that specifies the part to render.
FontThe font of the themed element, or
, if no font is defined for the specified class and part.