ListViewItem.GetBounds(ItemBoundsPortion) Metoda

Definicja

Pobiera określoną część prostokąta ograniczenia dla elementu.

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

Parametry

portion
ItemBoundsPortion

ItemBoundsPortion Jedna z wartości reprezentujących część elementu, dla której ma być pobierany prostokąt ograniczenia.

Zwraca

Obiekt Rectangle reprezentujący prostokąt ograniczenia dla określonej części elementu.

Uwagi

Prostokąt ograniczenia zwracany przez metodę GetBounds reprezentuje tylko sekcję elementu określonego w parametrze portion . Można również wywołać GetItemRect metody ListView klasy, aby uzyskać prostokąt ograniczenia dowolnego elementu w kontrolce ListView .

Dotyczy

Zobacz też