ListViewItem.GetBounds(ItemBoundsPortion) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索项的边界矩形的指定部分。
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 任何项的边界矩形。