using System.Drawing;
using System.Drawing.Drawing2D;
namespace Microsoft.Windows.Forms
{
partial class Sprite
{
private int m_LineWidth = 1;
///
/// 直线
///
public int LineWidth
{
get
{
return this.m_LineWidth;
}
set
{
if (value != this.m_LineWidth)
{
this.m_LineWidth = value;
this.Feedback();
}
}
}
private BlendStyle m_LineBlendStyle = BlendStyle.Solid;
///
/// 直线混合样式
///
public BlendStyle LineBlendStyle
{
get
{
return this.m_LineBlendStyle;
}
set
{
if (value != this.m_LineBlendStyle)
{
this.m_LineBlendStyle = value;
this.Feedback();
}
}
}
private DashStyle m_LineDashStyle = DashStyle.Solid;
///
/// 直线绘制虚线样式
///
public DashStyle LineDashStyle
{
get
{
return this.m_LineDashStyle;
}
set
{
if (value != this.m_LineDashStyle)
{
this.m_LineDashStyle = value;
this.Feedback();
}
}
}
private float[] m_LineDashPattern = null;
///
/// 直线自定义的短划线和空白区域的数组
///
public float[] LineDashPattern
{
get
{
return this.m_LineDashPattern;
}
set
{
if (value != this.m_LineDashPattern)
{
this.m_LineDashPattern = value;
this.Feedback();
}
}
}
private DashCap m_LineDashCap = DashCap.Flat;
///
/// 直线虚线断弦断终点的线帽样式
///
public DashCap LineDashCap
{
get
{
return this.m_LineDashCap;
}
set
{
if (value != this.m_LineDashCap)
{
this.m_LineDashCap = value;
this.Feedback();
}
}
}
private float m_LineDashOffset = 0f;
///
/// 直线直线的起点到短划线图案起始处的距离
///
public float LineDashOffset
{
get
{
return this.m_LineDashOffset;
}
set
{
if (value != this.m_LineDashOffset)
{
this.m_LineDashOffset = value;
this.Feedback();
}
}
}
private Color m_LineColor = DefaultTheme.BorderColor;
///
/// 直线颜色
///
public Color LineColor
{
get
{
return this.m_LineColor;
}
set
{
if (value != this.m_LineColor)
{
this.m_LineColor = value;
this.Feedback();
}
}
}
private Color m_LineColorHovered = DefaultTheme.BorderColor + DefaultTheme.BorderColorHoveredVector;
///
/// 直线色鼠标移上向量
///
public Color LineColorHovered
{
get
{
return this.m_LineColorHovered;
}
set
{
if (value != this.m_LineColorHovered)
{
this.m_LineColorHovered = value;
this.Feedback();
}
}
}
private Color m_LineColorPressed = DefaultTheme.BorderColor + DefaultTheme.BorderColorPressedVector;
///
/// 直线色鼠标按下向量
///
public Color LineColorPressed
{
get
{
return this.m_LineColorPressed;
}
set
{
if (value != this.m_LineColorPressed)
{
this.m_LineColorPressed = value;
this.Feedback();
}
}
}
private Color m_LineColorFocused = DefaultTheme.BorderColor + DefaultTheme.BorderColorFocusedVector;
///
/// 直线色获取焦点向量
///
public Color LineColorFocused
{
get
{
return this.m_LineColorFocused;
}
set
{
if (value != this.m_LineColorFocused)
{
this.m_LineColorFocused = value;
this.Feedback();
}
}
}
private Color m_LineColorDisabled = DefaultTheme.BorderColor + DefaultTheme.BorderColorDisabledVector;
///
/// 直线色状态禁用向量
///
public Color LineColorDisabled
{
get
{
return this.m_LineColorDisabled;
}
set
{
if (value != this.m_LineColorDisabled)
{
this.m_LineColorDisabled = value;
this.Feedback();
}
}
}
private Color m_LineColorHighlight = DefaultTheme.BorderColor + DefaultTheme.BorderColorHighlightVector;
///
/// 直线色高亮向量
///
public Color LineColorHighlight
{
get
{
return this.m_LineColorHighlight;
}
set
{
if (value != this.m_LineColorHighlight)
{
this.m_LineColorHighlight = value;
this.Feedback();
}
}
}
private float m_LineColorPos1 = 0.45f;
///
/// 直线颜色位置1
///
public float LineColorPos1
{
get
{
return this.m_LineColorPos1;
}
set
{
if (value != this.m_LineColorPos1)
{
this.m_LineColorPos1 = value;
this.Feedback();
}
}
}
private float m_LineColorPos2 = 0.5f;
///
/// 直线颜色位置2
///
public float LineColorPos2
{
get
{
return this.m_LineColorPos2;
}
set
{
if (value != this.m_LineColorPos2)
{
this.m_LineColorPos2 = value;
this.Feedback();
}
}
}
}
}