ScrollableControl.DockPadding Property
.NET Framework (current version)
Gets the dock padding settings for all edges of the control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
[<BrowsableAttribute(false)>] member DockPadding : ScrollableControl.DockPaddingEdges with get
Property Value
Type: System.Windows.Forms.ScrollableControl.DockPaddingEdgesA ScrollableControl.DockPaddingEdges that represents the padding for all the edges of a docked control.
This property controls the border inside of this control for docked components.
The following code example uses the derived class, Panel. The example docks a button in a panel control and cycles through the ScrollableControl.DockPaddingEdges properties, setting each individually on the click of the button. The example requires that you have created an instance of a Panel control and a Button on a form, and you have declared a class level member variable named myCounter as a 32-bit signed integer. You should call this code on the Click event of the button.
.NET Framework
Available since 1.1
Available since 1.1
Show: