Raises the RectangleColorChanged event.
protected virtual void OnRectangleColorChanged(
EventArgs e
)
Protected Overridable Sub OnRectangleColorChanged( _
ByVal e As EventArgs _
)
protected:
virtual void OnRectangleColorChanged(
EventArgs^ e
)
e
An System.EventArgs that contains the event data.
Raising an event invokes the event handler through a delegate. The OnRectangleColorChanged 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 OnRectangleColorChanged in a derived class, be sure to call the base class's OnRectangleColorChanged method so that registered delegates receive the event.
This example overrides the virtual events of the RasterImagePanViewer class.
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Public Class MyRasterImagePanViewer
Inherits RasterImagePanViewer
'.
'.
'.
Protected Overrides Sub OnViewerChanged(ByVal e As EventArgs)
MyBase.OnViewerChanged(e)
Console.WriteLine("OnViewerChanged is called")
End Sub
Protected Overrides Sub OnRectangleColorChanged(ByVal e As EventArgs)
MyBase.OnRectangleColorChanged(e)
Console.WriteLine("OnRectangleColorChanged is called")
End Sub
Protected Overrides Sub OnImageColorChanged(ByVal e As EventArgs)
MyBase.OnImageColorChanged(e)
Console.WriteLine("OnImageColorChanged is called")
End Sub
Protected Overrides Sub OnClipCursorChanged(ByVal e As EventArgs)
MyBase.OnClipCursorChanged(e)
Console.WriteLine("OnClipCursorChanged is called")
End Sub
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
MyBase.OnPaint(e)
Console.WriteLine("OnPaint is called")
End Sub
Protected Overrides Sub OnMouseDown(ByVal e As MouseEventArgs)
MyBase.OnMouseDown(e)
Console.WriteLine("OnMouseDown is called")
End Sub
Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs)
MyBase.OnMouseMove(e)
Console.WriteLine("OnMouseMove is called")
End Sub
Protected Overrides Sub OnMouseUp(ByVal e As MouseEventArgs)
MyBase.OnMouseUp(e)
Console.WriteLine("OnMouseUp is called")
End Sub
Protected Overrides Sub OnLostFocus(ByVal e As EventArgs)
MyBase.OnLostFocus(e)
Console.WriteLine("OnLostFocus is called")
End Sub
Protected Overrides Sub OnSizeChanged(ByVal e As EventArgs)
MyBase.OnSizeChanged(e)
Console.WriteLine("OnSizeChanged is called")
End Sub
End Class
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
public class MyRasterImagePanViewer : RasterImagePanViewer
{
//.
//.
//.
protected override void OnViewerChanged(EventArgs e)
{
base.OnViewerChanged(e);
Console.WriteLine("OnViewerChanged is called");
}
protected override void OnRectangleColorChanged(EventArgs e)
{
base.OnRectangleColorChanged(e);
Console.WriteLine("OnRectangleColorChanged is called");
}
protected override void OnImageColorChanged(EventArgs e)
{
base.OnImageColorChanged(e);
Console.WriteLine("OnImageColorChanged is called");
}
protected override void OnClipCursorChanged(EventArgs e)
{
base.OnClipCursorChanged(e);
Console.WriteLine("OnClipCursorChanged is called");
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Console.WriteLine("OnPaint 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 OnLostFocus(EventArgs e)
{
base.OnLostFocus(e);
Console.WriteLine("OnLostFocus is called");
}
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
Console.WriteLine("OnSizeChanged is called");
}
}
Products |
Support |
Feedback: OnRectangleColorChanged Method - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.