MenuStrip.DefaultPadding MenuStrip.DefaultPadding MenuStrip.DefaultPadding MenuStrip.DefaultPadding Property

定義

取得從表單的邊緣算起的 MenuStrip 左、右、上、下邊緣之間的間距 (以像素為單位)。Gets the spacing, in pixels, between the left, right, top, and bottom edges of the MenuStrip from the edges of the form.

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

屬性值

表示此間距的 PaddingA Padding that represents the spacing. 預設值為{Left = 6、Top = 2、Right = 0、底端 = 2}The default is {Left=6, Top=2, Right=0, Bottom=2}.

備註

DefaultPadding使用屬性,即可設定控制項之間的內部空間。Use the DefaultPadding property to set the interior space between controls. 當控制項是專案的容器時,填補代表容器邊緣的空間。When a control is a container of items, padding represents the space from the edge of the container.

適用於