ToolStripComboBox.DefaultMargin 屬性

定義

取得 ToolStripComboBox 和相鄰項目之間的預設間距 (以像素為單位)。Gets the default spacing, in pixels, between the ToolStripComboBox and an adjacent item.

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

屬性值

Padding 值。A Padding value.

備註

覆寫 DefaultMargin 屬性,為您的 ToolStripComboBox設定預設大小。Override the DefaultMargin property to configure a default size for your ToolStripComboBox. 這比在函數中設定大小更有效率。This is more efficient than setting the size in the constructor.

適用於