ToolStripItem.Bounds プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
アイテムのサイズと場所を取得します。
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
プロパティ値
ToolStripItemのサイズと場所を表すRectangle。
- 属性
注釈
Bounds プロパティを使用して、ToolStripItemのサイズと場所を決定します。
他のコントロールとは異なり、ToolStripItemには、ToolStripの左上隅を基準にしてToolStripItemの左上隅を設定できるプロパティはありません。 ToolStripItemの絶対位置を設定する必要がある場合は、ToolStripをオーバーライドし、SetItemLocation メソッドのカスタム実装を定義する必要があります。