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 值,代表要擷取週框的部分項目。

傳回

Rectangle,表示項目特定部分的週框。

備註

方法所傳 GetBounds 回的周框只代表 參數中指定的 portion 專案區段。 您也可以呼叫 GetItemRect 類別的方法 ListView ,以取得 控制項中 ListView 任何專案的周框。

適用於

另請參閱