pascalabcnet/Utils/NodesGeneratorNew/Scintilla/Sources/ScintillaNET/LinesNeedShownEventArgs.cs
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

62 lines
1.4 KiB
C#

#region Using Directives
using System;
#endregion Using Directives
namespace ScintillaNET
{
/// <summary>
/// Provides data for the LinesNeedShown event
/// </summary>
public class LinesNeedShownEventArgs : EventArgs
{
#region Fields
private int _firstLine;
private int _lastLine;
#endregion Fields
#region Properties
/// <summary>
/// Returns the first (top) line that needs to be shown
/// </summary>
public int FirstLine
{
get { return _firstLine; }
}
/// <summary>
/// Returns the last (bottom) line that needs to be shown
/// </summary>
public int LastLine
{
get { return _lastLine; }
set { _lastLine = value; }
}
#endregion Properties
#region Constructors
/// <summary>
/// Initializes a new instance of the LinesNeedShownEventArgs class.
/// </summary>
/// <param name="startLine">the first (top) line that needs to be shown</param>
/// <param name="endLine">the last (bottom) line that needs to be shown</param>
public LinesNeedShownEventArgs(int startLine, int endLine)
{
_firstLine = startLine;
_lastLine = endLine;
}
#endregion Constructors
}
}