ExtensionMethodsScaleFont Method |
A Control extension method that scales font according to the passed factor.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax public static void ScaleFont(
this Control pControl,
SizeF pFactor
)
<ExtensionAttribute>
Public Shared Sub ScaleFont (
pControl As Control,
pFactor As SizeF
)
public:
[ExtensionAttribute]
static void ScaleFont(
Control^ pControl,
SizeF pFactor
)
[<ExtensionAttribute>]
static member ScaleFont :
pControl : Control *
pFactor : SizeF -> unit
Parameters
- pControl
- Type: System.Windows.FormsControl
The pControl to act on. - pFactor
- Type: System.DrawingSizeF
The factor.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Control. 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).
See Also