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 任何项的边界矩形。

适用于

另请参阅