Class ThemeRenderer
Displays the control in the current system theme. This renderer cannot be themed.
Implements
Inherited Members
Namespace: Manina.Windows.Forms.ImageListViewRenderers
Assembly: ImageListView.dll
Syntax
public class ThemeRenderer : ImageListView.ImageListViewRenderer, IDisposable
Constructors
| Improve this Doc View SourceThemeRenderer()
Initializes a new instance of the ThemeRenderer class.
Declaration
public ThemeRenderer()
Properties
| Improve this Doc View SourceCanApplyColors
Gets a value indicating whether this renderer can apply custom colors.
Declaration
public override bool CanApplyColors { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceVisualStylesEnabled
Gets whether visual styles are supported.
Declaration
public bool VisualStylesEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDrawCheckBox(Graphics, ImageListViewItem, Rectangle)
Draws the checkbox icon for the specified item on the given graphics.
Declaration
public override void DrawCheckBox(Graphics g, ImageListViewItem item, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics to draw on. |
ImageListViewItem | item | The ImageListViewItem to draw. |
System.Drawing.Rectangle | bounds | The bounding rectangle of the checkbox in client coordinates. |
Overrides
| Improve this Doc View SourceDrawColumnExtender(Graphics, Rectangle)
Draws the extender after the last column.
Declaration
public override void DrawColumnExtender(Graphics g, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics to draw on. |
System.Drawing.Rectangle | bounds | The bounding rectangle of extender column in client coordinates. |
Overrides
| Improve this Doc View SourceDrawColumnHeader(Graphics, ImageListView.ImageListViewColumnHeader, ColumnState, Rectangle)
Draws the column headers.
Declaration
public override void DrawColumnHeader(Graphics g, ImageListView.ImageListViewColumnHeader column, ColumnState state, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics to draw on. |
ImageListView.ImageListViewColumnHeader | column | The ImageListViewColumnHeader to draw. |
ColumnState | state | The current view state of column. |
System.Drawing.Rectangle | bounds | The bounding rectangle of column in client coordinates. |
Overrides
| Improve this Doc View SourceDrawFileIcon(Graphics, ImageListViewItem, Rectangle)
Draws the file icon for the specified item on the given graphics.
Declaration
public override void DrawFileIcon(Graphics g, ImageListViewItem item, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics to draw on. |
ImageListViewItem | item | The ImageListViewItem to draw. |
System.Drawing.Rectangle | bounds | The bounding rectangle of the file icon in client coordinates. |
Overrides
| Improve this Doc View SourceDrawGroupHeader(Graphics, String, Rectangle)
Draws the group headers.
Declaration
public override void DrawGroupHeader(Graphics g, string name, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics to draw on. |
System.String | name | The name of the group to draw. |
System.Drawing.Rectangle | bounds | The bounding rectangle of group in client coordinates. |
Overrides
| Improve this Doc View SourceDrawItem(Graphics, ImageListViewItem, ItemState, Rectangle)
Draws the specified item on the given graphics.
Declaration
public override void DrawItem(Graphics g, ImageListViewItem item, ItemState state, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics to draw on. |
ImageListViewItem | item | The ImageListViewItem to draw. |
ItemState | state | The current view state of item. |
System.Drawing.Rectangle | bounds | The bounding rectangle of item in client coordinates. |
Overrides
| Improve this Doc View SourceMeasureItem(View)
Returns item size for the given view mode.
Declaration
public override Size MeasureItem(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The view mode for which the measurement should be made. |
Returns
Type | Description |
---|---|
System.Drawing.Size | The item size. |