Determines the border padding for docked controls.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets or sets the padding width for all edges of a docked control.
Gets or sets the padding width for the bottom edge of a docked control.
Gets or sets the padding width for the left edge of a docked control.
Gets or sets the padding width for the right edge of a docked control.
Gets or sets the padding width for the top edge of a docked control.
This API supports the product infrastructure and is not intended to be used directly from your code. Determines whether the specified object is equal to the current Object.Equals(Object).)object.(Overrides
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
This API supports the product infrastructure and is not intended to be used directly from your code. Serves as a hash function for a particular type.(Overrides Object.GetHashCode().)
This API supports the product infrastructure and is not intended to be used directly from your code. Returns an empty string.(Overrides Object.ToString().)
Creates a new object that is a copy of the current instance.
The Bottom, Top, Left, Right. Alternatively, you can set all the edges to the same width simultaneously by setting the All property. If the size of the control is too large for its container, the control will be resized to fit in the container, minus the specified margin width.class creates a margin on a given edge or all edges of a docked control. You can set the width of this margin for each individual edge by setting the following properties:
The following code example uses the derived class, Panel. The example docks a button in a panel control and cycles through the properties, setting each individually on the click of the button. This code requires that a Panel control and a Button have been instantiated on a form, and a class-level member variable named myCounter has been declared as a 32-bit signed integer. This code should be called on the Click event of the button.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.