Raises the SorterChanged event.
protected virtual void OnSorterChanged(
EventArgs e
)
e
An System.EventArgs that contains the event data.
Raising an event invokes the event handler through a delegate.
The OnSorterChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors: When overriding OnSorterChanged in a derived class, be sure to call the base class's OnSorterChanged method so that registered delegates receive the event.
This example overrides the virtual events of the RasterImageList class.
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Drawing;
public class MyRasterImageList : RasterImageList
{
//.
//.
//.
protected override void OnAutoDeselectItemsChanged(EventArgs e)
{
base.OnAutoDeselectItemsChanged(e);
Console.WriteLine("OnAutoDeselectItemsChanged is called");
}
protected override void OnAutoDisposeImagesChanged(EventArgs e)
{
base.OnAutoDisposeImagesChanged(e);
Console.WriteLine("OnAutoDisposeImagesChanged is called");
}
protected override void OnBorderStyleChanged(EventArgs e)
{
base.OnBorderStyleChanged(e);
Console.WriteLine("OnBorderStyleChanged is called");
}
protected override void OnDoubleBufferChanged(EventArgs e)
{
base.OnDoubleBufferChanged(e);
Console.WriteLine("OnDoubleBufferChanged is called");
}
protected override void OnDrawItem(RasterImageListDrawItemEventArgs e)
{
base.OnDrawItem(e);
Console.WriteLine("OnDrawItem is called");
}
protected override void OnEnableKeyboardChanged(EventArgs e)
{
base.OnEnableKeyboardChanged(e);
Console.WriteLine("OnEnableKeyboardChanged is called");
}
protected override void OnEnableRubberBandSelectionChanged(EventArgs e)
{
base.OnEnableRubberBandSelectionChanged(e);
Console.WriteLine("OnEnableRubberBandSelectionChanged is called");
}
protected override void OnItemBackColorChanged(EventArgs e)
{
base.OnItemBackColorChanged(e);
Console.WriteLine("OnItemBackColorChanged is called");
}
protected override void OnItemBorderStyleChanged(EventArgs e)
{
base.OnItemBorderStyleChanged(e);
Console.WriteLine("OnItemBorderStyleChanged is called");
}
protected override void OnItemForeColorChanged(EventArgs e)
{
base.OnItemForeColorChanged(e);
Console.WriteLine("OnItemForeColorChanged is called");
}
protected override void OnItemImageBorderStyleChanged(EventArgs e)
{
base.OnItemImageBorderStyleChanged(e);
Console.WriteLine("OnItemImageBorderStyleChanged is called");
}
protected override void OnItemImageSizeChanged(EventArgs e)
{
base.OnItemImageSizeChanged(e);
Console.WriteLine("OnItemImageSizeChanged is called");
}
protected override void OnItemSelectedBackColorChanged(EventArgs e)
{
base.OnItemSelectedBackColorChanged(e);
Console.WriteLine("OnItemSelectedBackColorChanged is called");
}
protected override void OnItemSelectedForeColorChanged(EventArgs e)
{
base.OnItemSelectedForeColorChanged(e);
Console.WriteLine("OnItemSelectedForeColorChanged is called");
}
protected override void OnItemSizeChanged(EventArgs e)
{
base.OnItemSizeChanged(e);
Console.WriteLine("OnItemSizeChanged is called");
}
protected override void OnItemSpacingSizeChanged(EventArgs e)
{
base.OnItemSpacingSizeChanged(e);
Console.WriteLine("OnItemSpacingSizeChanged is called");
}
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown(e);
Console.WriteLine("OnKeyDown is called");
}
protected override void OnLostFocus(EventArgs e)
{
base.OnLostFocus(e);
Console.WriteLine("OnLostFocus is called");
}
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
Console.WriteLine("OnMouseDown is called");
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
Console.WriteLine("OnMouseMove is called");
}
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
Console.WriteLine("OnMouseUp is called");
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Console.WriteLine("OnPaint is called");
}
protected override void OnPaintPropertiesChanged(EventArgs e)
{
base.OnPaintPropertiesChanged(e);
Console.WriteLine("OnPaintPropertiesChanged is called");
}
protected override void OnScroll(EventArgs e)
{
base.OnScroll(e);
Console.WriteLine("OnScroll is called");
}
protected override void OnScrollStyleChanged(EventArgs e)
{
base.OnScrollStyleChanged(e);
Console.WriteLine("OnScrollStyleChanged is called");
}
protected override void OnSelectedIndexChanged(EventArgs e)
{
base.OnSelectedIndexChanged(e);
Console.WriteLine("OnSelectedIndexChanged is called");
}
protected override void OnSelectionModeChanged(EventArgs e)
{
base.OnSelectionModeChanged(e);
Console.WriteLine("OnSelectionModeChanged is called");
}
protected override void OnSelectUserImageChanged(EventArgs e)
{
base.OnSelectUserImageChanged(e);
Console.WriteLine("OnSelectUserImageChanged is called");
}
protected override void OnShowItemTextChanged(EventArgs e)
{
base.OnShowItemTextChanged(e);
Console.WriteLine("OnShowItemTextChanged is called");
}
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
Console.WriteLine("OnSizeChanged is called");
}
protected override void OnSorterChanged(EventArgs e)
{
base.OnSorterChanged(e);
Console.WriteLine("OnSorterChanged is called");
}
protected override void OnSortingChanged(EventArgs e)
{
base.OnSortingChanged(e);
Console.WriteLine("OnSortingChanged is called");
}
protected override void OnViewStyleChanged(EventArgs e)
{
base.OnViewStyleChanged(e);
Console.WriteLine("OnViewStyleChanged is called");
}
}