System.FontExtensions
Namespace: System
Assembly: Wisej.Framework (3.0.0.0)
Extends the Font class.
In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Changes the FontStyle of the specified font .
Parameter | Type | Description |
---|---|---|
Returns: Font. A new Font with the same size and family as font and the specified style .
Changes the size of the specified font .
Parameter | Type | Description |
---|---|---|
Returns: Font. A new Font with the new size and same family as font .
Changes the size of the specified font .
Returns: Font. A new Font with the new size and unit .
Changes the size and style of the specified font .
Returns: Font. A new Font with the new size, unit , and style .
Creates a copy of the Font preserving the OriginalFontName.
Returns: Font. A new Font identical to the original font..
Returns whether the specified font is a theme font.
Returns: Boolean. True if font is a theme font.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
font
Base font.
size
New size using the specified unit .
unit
New GraphicsUnit.
font
Base font.
size
New size using the specified unit .
style
New see FontStyle.
unit
New GraphicsUnit.
font
font
Font to check.
font
Base font.
style
New FontStyle.
font
Base font.
size
New size using the same GraphicsUnit of the original font .