I am using ObjectListView in a C# winforms project and want to show a small icon in one of the columns.
So far, the icon is showing just fine, but it isn't centered in the column, and I cannot find any documentation or code that pertains to image alignment within a column.
Here are the instructions for displaying an image as the column contents.
The code is virtually the same as the example given:
col_Important.AspectGetter = delegate(object x) { return ((ClassMyItem)x).IsImportant; };
col_Important.AspectToStringConverter = delegate(object x) { return String.Empty; };
col_Important.ImageGetter = delegate(object x)
{
return ((ClassMyItem)x).IsImportant? "star" : "none";
};
Has anyone dealt with this issue and know of a way to center the image?