Skip to main content
Version: 4.1

FontExtensions

Namespace: System

Assembly: Wisej.Framework (4.1.0.0)

Extends the Font class.

public class FontExtensions

Methods

Static member Change(font, style)

Changes the FontStyle of the specified font .

ParameterTypeDescription
fontFontBase font.
styleFontStyleNew FontStyle.

Returns: Font. A new Font with the same size and family as font and the specified style .

Static member Change(font, size)

Changes the size of the specified font .

ParameterTypeDescription
fontFontBase font.
sizeSingleNew size using the same GraphicsUnit of the original font .

Returns: Font. A new Font with the new size and same family as font .

Static member Change(font, size, unit)

Changes the size of the specified font .

ParameterTypeDescription
fontFontBase font.
sizeSingleNew size using the specified unit .
unitGraphicsUnitNew GraphicsUnit.

Returns: Font. A new Font with the new size and unit .

Static member Change(font, size, style, unit)

Changes the size and style of the specified font .

ParameterTypeDescription
fontFontBase font.
sizeSingleNew size using the specified unit .
styleFontStyleNew see FontStyle.
unitGraphicsUnitNew GraphicsUnit.

Returns: Font. A new Font with the new size, unit , and style .

Static member Copy(font)

Creates a copy of the Font preserving the OriginalFontName.

ParameterTypeDescription
fontFont

Returns: Font. A new Font identical to the original font..

Static member IsThemeFont(font)

Returns whether the specified font is a theme font.

ParameterTypeDescription
fontFontFont to check.

Returns: Boolean. True if font is a theme font.