C# Class ImageGlass.ImageListView.ImageListViewRenderers.TilesRenderer

Displays items with large tiles.
Inheritance: ImageListView.ImageListViewRenderer
Show file Open project: d2phap/ImageGlass

Private Properties

Property Type Description

Public Methods

Method Description
Dispose ( ) : void

Releases managed resources.

DrawItem ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, ItemState state, Rectangle bounds ) : void

Draws the specified item on the given graphics.

MeasureItem ( ImageGlass view ) : Size

Returns item size for the given view mode.

TilesRenderer ( ) : System

Initializes a new instance of the TilesRenderer class.

TilesRenderer ( int tileWidth ) : System

Initializes a new instance of the TilesRenderer class.

Method Details

Dispose() public method

Releases managed resources.
public Dispose ( ) : void
return void

DrawItem() public method

Draws the specified item on the given graphics.
public DrawItem ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, ItemState state, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
item ImageGlass.ImageListView.ImageListViewItem The ImageListViewItem to draw.
state ItemState The current view state of item.
bounds System.Drawing.Rectangle The bounding rectangle of item in client coordinates.
return void

MeasureItem() public method

Returns item size for the given view mode.
public MeasureItem ( ImageGlass view ) : Size
view ImageGlass The view mode for which the item measurement should be made.
return System.Drawing.Size

TilesRenderer() public method

Initializes a new instance of the TilesRenderer class.
public TilesRenderer ( ) : System
return System

TilesRenderer() public method

Initializes a new instance of the TilesRenderer class.
public TilesRenderer ( int tileWidth ) : System
tileWidth int Width of tiles in pixels.
return System