#region Using Directives using System; using System.Windows.Forms; #endregion Using Directives namespace ScintillaNET { /// /// Provides data for the MarginClick event /// public class MarginClickEventArgs : EventArgs { #region Fields private Line _line; private Margin _margin; private Keys _modifiers; private int _position; private bool _toggleFold; private int _toggleMarkerNumber; #endregion Fields #region Properties /// /// Returns the Document line # where the click occured /// public Line Line { get { return _line; } } /// /// Returns the Margin where the click occured /// public Margin Margin { get { return _margin; } } /// /// Returns any Modifier keys (shift, alt, ctrl) that were in use at the /// time the click event occured /// public Keys Modifiers { get { return _modifiers; } } /// /// Returns the Document position of the line where the click occured /// public int Position { get { return _position; } } /// /// Gets/Sets whether the fold at the current line should be toggled /// public bool ToggleFold { get { return _toggleFold; } set { _toggleFold = value; } } /// /// Gets/Sets the marker number that should be toggled in result of the click /// public int ToggleMarkerNumber { get { return _toggleMarkerNumber; } set { _toggleMarkerNumber = value; } } #endregion Properties #region Constructors /// /// Initializes a new instance of the MarginClickEventArgs class. /// /// /// Any Modifier keys (shift, alt, ctrl) that were in use at the /// time the click event occured /// /// Document position of the line where the click occured /// Document line # where the click occured /// Margin where the click occured /// marker number that should be toggled in result of the click /// Whether the fold at the current line should be toggled public MarginClickEventArgs(Keys modifiers, int position, Line line, Margin margin, int toggleMarkerNumber, bool toggleFold) { _modifiers = modifiers; _position = position; _line = line; _margin = margin; _toggleMarkerNumber = toggleMarkerNumber; _toggleFold = toggleFold; } #endregion Constructors } }