This tool accesses information about the column and displays it in a message box.
/// <summary>
/// This sample tool displays information about the clicked column.
/// </summary>
internal sealed class ColumnInfoTool : CustomTool<TablePlotColumnContext>
{
internal ColumnInfoTool() : base("Show Column Info")
{
}
protected override void ExecuteCore(TablePlotColumnContext context)
{
string name = context.TableColumn.Name;
string renderer = context.TableColumn.ValueRendererSettings.TypeId.DisplayName;
string info = string.Format(
System.Threading.Thread.CurrentThread.CurrentCulture,
"Column: {0}\r\nRenderer: {1}",
new object[] { name, renderer } );
MessageBox.Show(info, "Column Info");
}
}