76 lines
1.9 KiB
C#
76 lines
1.9 KiB
C#
|
|
#region Using Directives
|
|||
|
|
|
|||
|
|
using System;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
|
|||
|
|
#endregion Using Directives
|
|||
|
|
|
|||
|
|
|
|||
|
|
namespace ScintillaNET
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Provides data for native Scintilla Events
|
|||
|
|
/// </summary>
|
|||
|
|
/// <remarks>
|
|||
|
|
/// All events fired from the INativeScintilla Interface uses
|
|||
|
|
/// NativeScintillaEventArgs. Msg is a copy
|
|||
|
|
/// of the Notification Message sent to Scintilla's Parent WndProc
|
|||
|
|
/// and SCNotification is the SCNotification Struct pointed to by
|
|||
|
|
/// Msg's lParam.
|
|||
|
|
/// </remarks>
|
|||
|
|
[Obsolete("This type will not be public in future versions.")]
|
|||
|
|
public class NativeScintillaEventArgs : EventArgs
|
|||
|
|
{
|
|||
|
|
#region Fields
|
|||
|
|
|
|||
|
|
private Message _msg;
|
|||
|
|
private SCNotification _notification;
|
|||
|
|
|
|||
|
|
#endregion Fields
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region Properties
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Notification Message sent from the native Scintilla
|
|||
|
|
/// </summary>
|
|||
|
|
public Message Msg
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
return _msg;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// SCNotification structure sent from Scintilla that contains the event data
|
|||
|
|
/// </summary>
|
|||
|
|
public SCNotification SCNotification
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
return _notification;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion Properties
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region Constructors
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Initializes a new instance of the NativeScintillaEventArgs class.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="msg">Notification Message sent from the native Scintilla</param>
|
|||
|
|
/// <param name="notification">SCNotification structure sent from Scintilla that contains the event data</param>
|
|||
|
|
public NativeScintillaEventArgs(Message msg, SCNotification notification)
|
|||
|
|
{
|
|||
|
|
_msg = msg;
|
|||
|
|
_notification = notification;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion Constructors
|
|||
|
|
}
|
|||
|
|
}
|