ScaleHelperScale(Padding, PointF) Method
Scales the specified padding by the provided scale factor.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static Padding Scale(
this Padding padding,
PointF scale
)
<ExtensionAttribute>
Public Shared Function Scale (
padding As Padding,
scale As PointF
) As Padding
public:
[ExtensionAttribute]
static Padding Scale(
Padding padding,
PointF scale
)
[<ExtensionAttribute>]
static member Scale :
padding : Padding *
scale : PointF -> Padding
- padding Padding
- The Padding to be scaled.
- scale PointF
- The scale factor to be applied, represented as a PointF where X is the horizontal scale and Y is the vertical scale.
PaddingA
Padding representing the scaled padding.In Visual Basic and C#, you can call this method as an instance method on any object of type
Padding. 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).