DefaultPadding Property

ToolStrip.DefaultPadding Property

 

Gets the internal spacing, in pixels, of the contents of a ToolStrip.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected override Padding DefaultPadding { get; }

Property Value

Type: System.Windows.Forms.Padding

A Padding value of (0, 0, 1, 0).

By default, the contents of the ToolStrip are padded one pixel from the right edge of the ToolStrip to prevent the right border from painting over a ToolStripItem that is right-aligned.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft