-
Notifications
You must be signed in to change notification settings - Fork 71
/
ListRangeEventArgs.cs
42 lines (37 loc) · 1.03 KB
/
ListRangeEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
namespace EasyTabs
{
/// <summary>Provides data for the <see cref="ListWithEvents{T}.RangeAdded" /> events.</summary>
[Serializable]
public class ListRangeEventArgs : EventArgs
{
/// <summary>Number of items in the range.</summary>
private readonly int _count;
/// <summary>Index of the first item in the range.</summary>
private readonly int _startIndex;
/// <summary>Initializes a new instance of the <see cref="ListRangeEventArgs" /> class.</summary>
/// <param name="startIndex">Index of the first item in the range.</param>
/// <param name="count">Number of items in the range.</param>
public ListRangeEventArgs(int startIndex, int count)
{
_startIndex = startIndex;
_count = count;
}
/// <summary>Gets the index of the first item in the range.</summary>
public int StartIndex
{
get
{
return _startIndex;
}
}
/// <summary>Gets the number of items in the range.</summary>
public int Count
{
get
{
return _count;
}
}
}
}