ToolStripItem.Bounds 屬性

定義

取得項目的大小和位置。

public:
 virtual property System::Drawing::Rectangle Bounds { System::Drawing::Rectangle get(); };
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Rectangle Bounds { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Bounds : System.Drawing.Rectangle
Public Overridable ReadOnly Property Bounds As Rectangle

屬性值

Rectangle,表示 ToolStripItem 的大小和位置。

屬性

備註

Bounds使用 屬性來判斷 的大小和位置 ToolStripItem

與其他控制項不同, ToolStripItem 沒有 屬性可讓您設定 ToolStripItem 相對於 左上角的 ToolStrip 左上角。 如果您需要設定 的 ToolStripItem 絕對位置,則必須覆寫 ToolStrip 並定義 方法的自訂實作 SetItemLocation

適用於

另請參閱