Source/Presentation/Line.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar.Presentation
{
/// <summary>
/// Represents the line drawn between start and end point.
/// </summary>
internal class Line : Shape
{
#region Private Variables
private Location m_StartPoint = new Location();
private Location m_EndPoint = new Location();
private ShapeBorder m_Border = new ShapeBorder();
#endregion
#region Internal Implementation
public Line() { }
public Line(Location startPoint, Location endPoint, ShapeBorder border)
{
m_StartPoint = startPoint;
m_EndPoint = endPoint;
m_Border = border;
}
/// <summary>
/// Gets the start point of the line.
/// </summary>
public Location StartPoint
{
get { return m_StartPoint; }
}
/// <summary>
/// Gets the end point of the line.
/// </summary>
public Location EndPoint
{
get { return m_EndPoint; }
}
/// <summary>
/// Gets the line border.
/// </summary>
public ShapeBorder Border
{
get { return m_Border; }
}
public override void Paint(ShapePaintInfo p)
{
System.Drawing.Point start = GetLocation(p.Bounds, m_StartPoint);
System.Drawing.Point end = GetLocation(p.Bounds, m_EndPoint);
Graphics g = p.Graphics;
if (m_Border.Color2.IsEmpty)
{
if (!m_Border.Color1.IsEmpty)
{
后面还有 13 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。