Source/ScrollBar/ScrollBarAdv.cs
(开头部分) 23KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using DevComponents.DotNetBar.ScrollBar;
using System.Drawing;
namespace DevComponents.DotNetBar
{
[ToolboxItem(false), DefaultEvent("Scroll"), DefaultProperty("Value")]
public abstract class ScrollBarAdv : Control, ICommandSource
{
#region Private Variables
private ScrollBarCore _ScrollBar = null;
#endregion
#region Events
/// <summary>
/// Occurs when the Value property is changed, either by a Scroll event or programmatically.
/// </summary>
public event EventHandler ValueChanged;
/// <summary>
/// Occurs when the scroll box has been moved by either a mouse or keyboard action.
/// </summary>
public event ScrollEventHandler Scroll;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the ScrollBarAdv class.
/// </summary>
public ScrollBarAdv()
{
this.TabStop = false;
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.Opaque, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(DisplayHelp.DoubleBufferFlag, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
this.SetStyle(ControlStyles.ContainerControl, false);
this.SetStyle(ControlStyles.Selectable, true);
CreateScrollBarCore();
}
#endregion
#region Internal Implementation
protected override void Dispose(bool disposing)
{
if (_ScrollBar != null)
{
_ScrollBar.Dispose();
_ScrollBar = null;
}
base.Dispose(disposing);
}
/// <summary>
/// Gets whether scrollbar is vertical.
/// </summary>
后面还有 681 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。