Source/Ribbon/SliderItem.cs
(开头部分) 38KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using DevComponents.DotNetBar.Design;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the slider item which allows you to select a value from predefined range.
/// </summary>
[Browsable(false), Designer(typeof(SimpleItemDesigner))]
public class SliderItem : BaseItem
{
#region Private Variables
private int m_Maximum = 100;
private int m_Minimum = 0;
private int m_Value = 0;
private int m_Step = 1;
private bool m_LabelVisible = true;
private int m_Width = 136;
private int m_LabelWidth = 38;
private eSliderLabelPosition m_LabelPosition = eSliderLabelPosition.Left;
private eSliderPart m_MouseOverPart = eSliderPart.None;
private eSliderPart m_MouseDownPart = eSliderPart.None;
private int m_ButtonSize = 18;
private Size m_SlideSize = new Size(11, 15);
private bool m_TrackMarker = true;
private Color m_TextColor = Color.Empty;
private string m_DecreaseTooltip = "";
private string m_IncreaseTooltip = "";
private string m_ItemTooltip = "";
#endregion
#region Events
/// <summary>
/// Occurs after Value property has changed.
/// </summary>
public event EventHandler ValueChanged;
/// <summary>
/// Occurs before Value property has changed.
/// </summary>
public event CancelIntValueEventHandler ValueChanging;
#endregion
#region Constructor, Copy
/// <summary>
/// Creates new instance of SliderItem.
/// </summary>
public SliderItem():this("","") {}
/// <summary>
/// Creates new instance of SliderItem and assigns the name to it.
/// </summary>
/// <param name="sItemName">Item name.</param>
public SliderItem(string sItemName):this(sItemName,"") {}
/// <summary>
/// Creates new instance of SliderItem and assigns the name and text to it.
/// </summary>
后面还有 973 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。