Source/Ribbon/Spacing.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Indicates spacing for an user interface element either padding or margins.
/// </summary>
[ToolboxItem(false),TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public class Spacing
{
#region Events
public event EventHandler SpacingChanged;
#endregion
#region Private Variables
private int m_Left = 0;
private int m_Right = 0;
private int m_Top = 0;
private int m_Bottom = 0;
#endregion
#region Internal Implementation
/// <summary>
/// Gets or sets the amount of the space on the left side.
/// </summary>
[Browsable(true), DefaultValue(0), Description("Indicates the amount of the space on the left side."), DevCoSerialize()]
public int Left
{
get { return m_Left; }
set
{
m_Left = value;
OnSpacingChanged();
}
}
/// <summary>
/// Gets or sets the amount of the space on the right side.
/// </summary>
[Browsable(true), DefaultValue(0), Description("Indicates the amount of the space on the right side."), DevCoSerialize()]
public int Right
{
get { return m_Right; }
set
{
m_Right = value;
OnSpacingChanged();
}
}
/// <summary>
/// Gets or sets the amount of the space on the top.
/// </summary>
[Browsable(true), DefaultValue(0), Description("Indicates the amount of the space on the top."), DevCoSerialize()]
public int Top
{
get { return m_Top; }
set
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。