C# Class Manina.Windows.Forms.ImageListViewLayoutManager

Represents the layout of the image list view drawing area.
ファイルを表示 Open project: oozcitak/imagelistview Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

GetCheckBoxBounds() public method

Returns the item checkbox bounds. This method assumes a checkbox icon size of 16x16
public GetCheckBoxBounds ( int itemIndex ) : Rectangle
itemIndex int
return System.Drawing.Rectangle

GetIconBounds() public method

Returns the item icon bounds. This method assumes an icon size of 16x16
public GetIconBounds ( int itemIndex ) : Rectangle
itemIndex int
return System.Drawing.Rectangle

GetItemBounds() public method

Returns the bounds of the item with the specified index.
public GetItemBounds ( int itemIndex ) : Rectangle
itemIndex int
return System.Drawing.Rectangle

GetItemBoundsWithMargin() public method

Returns the bounds of the item with the specified index, including the margin around the item.
public GetItemBoundsWithMargin ( int itemIndex ) : Rectangle
itemIndex int
return System.Drawing.Rectangle

ImageListViewLayoutManager() public method

Initializes a new instance of the ImageListViewLayoutManager class.
public ImageListViewLayoutManager ( ImageListView owner ) : System
owner ImageListView The owner control.
return System

IsItemVisible() public method

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.
return bool

Update() public method

Recalculates the control layout.
public Update ( ) : void
return void

Update() public method

Recalculates the control layout. true to force an update; otherwise false.
public Update ( bool forceUpdate ) : void
forceUpdate bool
return void