ScaleHelperGetScrollBarSize(Control) Method
Gets the recommended width and height of scrollbars matching the current scaling of the specified control.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static Size GetScrollBarSize(
this Control control
)
<ExtensionAttribute>
Public Shared Function GetScrollBarSize (
control As Control
) As Size
public:
[ExtensionAttribute]
static Size GetScrollBarSize(
Control^ control
)
[<ExtensionAttribute>]
static member GetScrollBarSize :
control : Control -> Size
- control Control
- The control for which the scrollbar size is requested.
SizeA
Size representing the recommended width and height of scrollbars.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).