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 必要があります。

適用対象

こちらもご覧ください