編集

次の方法で共有


ListViewItem.GetBounds(ItemBoundsPortion) Method

Definition

Retrieves the specified portion of the bounding rectangle for the item.

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

Parameters

portion
ItemBoundsPortion

One of the ItemBoundsPortion values that represents a portion of the item for which to retrieve the bounding rectangle.

Returns

A Rectangle that represents the bounding rectangle for the specified portion of the item.

Remarks

The bounding rectangle returned by the GetBounds method represents only the section of the item specified in the portion parameter. You can also call the GetItemRect methods of the ListView class to obtain the bounding rectangle of any item in a ListView control.

Applies to

See also