Source/CheckBoxItem/CheckBoxItem.cs
(开头部分) 23KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the Check-box item. Use a CheckBox to give the user an option, such as true/false or yes/no.
/// </summary>
[ToolboxItem(false), DesignTimeVisible(false), DefaultEvent("Click"), Designer(typeof(Design.CheckBoxItemDesigner))]
public class CheckBoxItem : BaseItem
{
#region Private Variables
private bool m_Checked = false;
private eCheckBoxStyle m_CheckBoxStyle = eCheckBoxStyle.CheckBox;
private Size m_CheckSignSize = new Size(13, 13);
private eCheckBoxPosition m_CheckBoxPosition = eCheckBoxPosition.Left;
private int m_CheckTextSpacing = 6;
private int m_VerticalPadding = 3;
private bool m_MouseDown = false;
private bool m_MouseOver = false;
private bool m_TextVisible = true;
private Color m_TextColor = Color.Empty;
private bool m_ThreeState = false;
private CheckState m_CheckState = CheckState.Unchecked;
#endregion
#region Events
/// <summary>
/// Occurs before Checked property is changed and allows you to cancel the change.
/// </summary>
public event CheckBoxChangeEventHandler CheckedChanging;
/// <summary>
/// Occurs after Checked property is changed. Action cannot be cancelled.
/// </summary>
public event CheckBoxChangeEventHandler CheckedChanged;
/// <summary>
/// Occurs when CheckState property has changed.
/// </summary>
public event EventHandler CheckStateChanged;
/// <summary>
/// Occurs when CheckedBindable property has changed.
/// </summary>
public event EventHandler CheckedBindableChanged;
#endregion
#region Constructor, Copy
/// <summary>
/// Creates new instance of CheckBoxItem.
/// </summary>
public CheckBoxItem():this("","") {}
/// <summary>
/// Creates new instance of CheckBoxItem and assigns the name to it.
/// </summary>
/// <param name="sItemName">Item name.</param>
public CheckBoxItem(string sItemName):this(sItemName,"") {}
/// <summary>
/// Creates new instance of CheckBoxItem and assigns the name and text to it.
后面还有 572 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。