COMHelper.GetFont

Helper method for COM clients to get a Font with the desired settings.

public static Font GetFont(string fontName,
	int fontSize,
	bool bold,
	bool italics,
	bool underline,
	bool strikethrough);

Return Value

The desired Font object.

Parameters

fontName
The font name.
fontSize
The font size.
bold
True for bold.
italics
True for italics.
underline
True for underline.
strikethrough
True for strikethrough.

See also:

Class COMHelper