VisualStyleHelperGetFont Method

Gets the font of a visual style element, or , if no font is defined for the specified class and part.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static Font? GetFont(
	string className,
	IntPtr hwnd,
	int part
)

Parameters

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.

Return Value

Font
The font of the themed element, or , if no font is defined for the specified class and part.

See Also