55 lines
732 B
C#
55 lines
732 B
C#
using System;
|
|
using System.Drawing;
|
|
|
|
namespace MLV;
|
|
|
|
public class ManagedListViewSubItemDrawArgs : EventArgs
|
|
{
|
|
private string id = "";
|
|
|
|
private ManagedListViewItem theItem;
|
|
|
|
private int itemIndex;
|
|
|
|
private Image image;
|
|
|
|
private string text;
|
|
|
|
public string ColumnID => id;
|
|
|
|
public string TextToDraw
|
|
{
|
|
get
|
|
{
|
|
return text;
|
|
}
|
|
set
|
|
{
|
|
text = value;
|
|
}
|
|
}
|
|
|
|
public Image ImageToDraw
|
|
{
|
|
get
|
|
{
|
|
return image;
|
|
}
|
|
set
|
|
{
|
|
image = value;
|
|
}
|
|
}
|
|
|
|
public int ItemIndex => itemIndex;
|
|
|
|
public ManagedListViewItem ParentItem => theItem;
|
|
|
|
public ManagedListViewSubItemDrawArgs(string id, int itemIndex, ManagedListViewItem theItem)
|
|
{
|
|
this.itemIndex = itemIndex;
|
|
this.id = id;
|
|
this.theItem = theItem;
|
|
}
|
|
}
|