ScaleHelperScaleSize Method
Scales the specified size by the scale factor of the control.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static Size ScaleSize(
this Control control,
Size size
)
<ExtensionAttribute>
Public Shared Function ScaleSize (
control As Control,
size As Size
) As Size
public:
[ExtensionAttribute]
static Size ScaleSize(
Control^ control,
Size size
)
[<ExtensionAttribute>]
static member ScaleSize :
control : Control *
size : Size -> Size
- control Control
- The control whose scale factor is used for scaling.
- size Size
- The Size to be scaled.
SizeA
Size representing the scaled size.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).