ToolStripItem.DefaultPadding 屬性

定義

取得項目的內部間距特性。Gets the internal spacing characteristics of the item.

protected:
 virtual property System::Windows::Forms::Padding DefaultPadding { System::Windows::Forms::Padding get(); };
protected virtual System.Windows.Forms.Padding DefaultPadding { get; }
member this.DefaultPadding : System.Windows.Forms.Padding
Protected Overridable ReadOnly Property DefaultPadding As Padding

屬性值

其中一個 Padding 值。One of the Padding values.

備註

您可以覆寫 DefaultPadding 屬性,以設定 ToolStripItem的預設大小。You can override the DefaultPadding property to configure a default size for a ToolStripItem. 這比在 ToolStripItem的函式中設定大小更有效率。This is more efficient than setting the size in the constructor of the ToolStripItem.

適用於