FontExtensions
Namespace: System
Assembly: Wisej.Framework (4.1.0.0)
Extends the Font class.
- C#
- VB.NET
public class FontExtensions
Public Class FontExtensions
Methods
Change(font, style)
Changes the FontStyle of the specified font .
| Parameter | Type | Description |
|---|---|---|
| font | Font | Base font. |
| style | FontStyle | New FontStyle. |
Returns: Font. A new Font with the same size and family as font and the specified style .
Change(font, size)
Changes the size of the specified font .
| Parameter | Type | Description |
|---|---|---|
| font | Font | Base font. |
| size | Single | New size using the same GraphicsUnit of the original font . |
Returns: Font. A new Font with the new size and same family as font .
Change(font, size, unit)
Changes the size of the specified font .
| Parameter | Type | Description |
|---|---|---|
| font | Font | Base font. |
| size | Single | New size using the specified unit . |
| unit | GraphicsUnit | New GraphicsUnit. |
Returns: Font. A new Font with the new size and unit .
Change(font, size, style, unit)
Changes the size and style of the specified font .
| Parameter | Type | Description |
|---|---|---|
| font | Font | Base font. |
| size | Single | New size using the specified unit . |
| style | FontStyle | New see FontStyle. |
| unit | GraphicsUnit | New GraphicsUnit. |
Returns: Font. A new Font with the new size, unit , and style .
Copy(font)
Creates a copy of the Font preserving the OriginalFontName.
| Parameter | Type | Description |
|---|---|---|
| font | Font |
Returns: Font. A new Font identical to the original font..
IsThemeFont(font)
Returns whether the specified font is a theme font.
| Parameter | Type | Description |
|---|---|---|
| font | Font | Font to check. |
Returns: Boolean. True if font is a theme font.