C# Класс Manina.Windows.Forms.ImageListViewLayoutManager

Represents the layout of the image list view drawing area.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetCheckBoxBounds ( int itemIndex ) : Rectangle

Returns the item checkbox bounds. This method assumes a checkbox icon size of 16x16

GetIconBounds ( int itemIndex ) : Rectangle

Returns the item icon bounds. This method assumes an icon size of 16x16

GetItemBounds ( int itemIndex ) : Rectangle

Returns the bounds of the item with the specified index.

GetItemBoundsWithMargin ( int itemIndex ) : Rectangle

Returns the bounds of the item with the specified index, including the margin around the item.

ImageListViewLayoutManager ( ImageListView owner ) : System

Initializes a new instance of the ImageListViewLayoutManager class.

IsItemVisible ( System.Guid guid ) : bool

Determines whether the item with the given guid is (partially) visible.

Update ( ) : void

Recalculates the control layout.

Update ( bool forceUpdate ) : void

Recalculates the control layout. true to force an update; otherwise false.

Приватные методы

Метод Описание
CalculateGrid ( ) : void

Calculates the maximum number of rows and columns that can be fully displayed.

CheckScrollBars ( ) : bool

Shows or hides the scroll bars. Returns true if the layout needs to be recalculated; otherwise false.

GetWidgetBounds ( Rectangle bounds, Size size, Size padding, ContentAlignment alignment ) : Rectangle

Returns the bounds of a widget. Used to calculate the bounds of checkboxes and icons.

UpdateGroups ( ) : void

Updates the group display properties.

UpdateItemArea ( ) : bool

Calculates the item area.

UpdateScrollBars ( ) : void

Updates scroll bar parameters.

UpdateVisibleItems ( ) : void

Updates the dictionary of visible items.

Описание методов

GetCheckBoxBounds() публичный Метод

Returns the item checkbox bounds. This method assumes a checkbox icon size of 16x16
public GetCheckBoxBounds ( int itemIndex ) : Rectangle
itemIndex int
Результат System.Drawing.Rectangle

GetIconBounds() публичный Метод

Returns the item icon bounds. This method assumes an icon size of 16x16
public GetIconBounds ( int itemIndex ) : Rectangle
itemIndex int
Результат System.Drawing.Rectangle

GetItemBounds() публичный Метод

Returns the bounds of the item with the specified index.
public GetItemBounds ( int itemIndex ) : Rectangle
itemIndex int
Результат System.Drawing.Rectangle

GetItemBoundsWithMargin() публичный Метод

Returns the bounds of the item with the specified index, including the margin around the item.
public GetItemBoundsWithMargin ( int itemIndex ) : Rectangle
itemIndex int
Результат System.Drawing.Rectangle

ImageListViewLayoutManager() публичный Метод

Initializes a new instance of the ImageListViewLayoutManager class.
public ImageListViewLayoutManager ( ImageListView owner ) : System
owner ImageListView The owner control.
Результат System

IsItemVisible() публичный Метод

Determines whether the item with the given guid is (partially) visible.
public IsItemVisible ( System.Guid guid ) : bool
guid System.Guid The guid of the item to check.
Результат bool

Update() публичный Метод

Recalculates the control layout.
public Update ( ) : void
Результат void

Update() публичный Метод

Recalculates the control layout. true to force an update; otherwise false.
public Update ( bool forceUpdate ) : void
forceUpdate bool
Результат void