ListViewItem.GetBounds(ItemBoundsPortion) メソッド

定義

項目の外接する四角形の指定した部分を取得します。

public:
 System::Drawing::Rectangle GetBounds(System::Windows::Forms::ItemBoundsPortion portion);
public System.Drawing.Rectangle GetBounds(System.Windows.Forms.ItemBoundsPortion portion);
member this.GetBounds : System.Windows.Forms.ItemBoundsPortion -> System.Drawing.Rectangle
Public Function GetBounds (portion As ItemBoundsPortion) As Rectangle

パラメーター

portion
ItemBoundsPortion

外接する四角形を取得する項目の一部を表す ItemBoundsPortion 値の 1 つ。

返品

アイテムの指定した部分の外接する四角形を表す Rectangle

注釈

GetBounds メソッドによって返される外接する四角形は、portion パラメーターで指定された項目のセクションのみを表します。 ListView クラスのGetItemRect メソッドを呼び出して、ListView コントロール内の任意の項目の外接する四角形を取得することもできます。

適用対象

こちらもご覧ください