DarkUI.Net5/DarkUI/Controls/DarkListItem.cs
2017-03-05 17:44:38 +00:00

64 lines
1.1 KiB
C#

using DarkUI.Config;
using System;
using System.Drawing;
namespace DarkUI.Controls
{
public class DarkListItem
{
#region Event Region
public event EventHandler TextChanged;
#endregion
#region Field Region
private string _text;
#endregion
#region Property Region
public string Text
{
get { return _text; }
set
{
_text = value;
if (TextChanged != null)
TextChanged(this, new EventArgs());
}
}
public Rectangle Area { get; set; }
public Color TextColor { get; set; }
public FontStyle FontStyle { get; set; }
public Bitmap Icon { get; set; }
public object Tag { get; set; }
#endregion
#region Constructor Region
public DarkListItem()
{
TextColor = Colors.LightText;
FontStyle = FontStyle.Regular;
}
public DarkListItem(string text)
: this()
{
Text = text;
}
#endregion
}
}