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