ScaleHelperScaleWidth Method
Scales the specified width by the horizontal scale factor of the control.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static int ScaleWidth(
this Control control,
int width
)
<ExtensionAttribute>
Public Shared Function ScaleWidth (
control As Control,
width As Integer
) As Integer
public:
[ExtensionAttribute]
static int ScaleWidth(
Control^ control,
int width
)
[<ExtensionAttribute>]
static member ScaleWidth :
control : Control *
width : int -> int
- control Control
- The control whose horizontal scale factor is used for scaling.
- width Int32
- The width to be scaled.
Int32An integer value representing the scaled width.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).