#region Using Directives
using System;
#endregion Using Directives
namespace ScintillaNET
{
///
/// Provides data for the FoldChanged event
///
public class FoldChangedEventArgs : ModifiedEventArgs
{
#region Fields
private int _line;
private int _newFoldLevel;
private int _previousFoldLevel;
#endregion Fields
#region Properties
///
/// Gets/Sets the Line # that the fold change occured on
///
public int Line
{
get
{
return _line;
}
set
{
_line = value;
}
}
///
/// Gets the new Fold Level of the line
///
public int NewFoldLevel
{
get
{
return _newFoldLevel;
}
}
///
/// Gets the previous Fold Level of the line
///
public int PreviousFoldLevel
{
get
{
return _previousFoldLevel;
}
}
#endregion Properties
#region Constructors
///
/// Initializes a new instance of the FoldChangedEventArgs class.
///
/// Line # that the fold change occured on
/// new Fold Level of the line
/// previous Fold Level of the line
/// What kind of fold modification occured
public FoldChangedEventArgs(int line, int newFoldLevel, int previousFoldLevel, int modificationType) : base(modificationType)
{
_line = line;
_newFoldLevel = newFoldLevel;
_previousFoldLevel = previousFoldLevel;
}
#endregion Constructors
}
}