Source/Presentation/Rectangle.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar.Presentation
{
internal class Rectangle : Shape
{
#region Private Variables
private int m_CornerSize = 0;
private ShapeBorder m_Border = new ShapeBorder();
private ShapeFill m_Fill = new ShapeFill();
private eCornerType m_TopLeftCornerType = eCornerType.Square;
private eCornerType m_TopRightCornerType = eCornerType.Square;
private eCornerType m_BottomLeftCornerType = eCornerType.Square;
private eCornerType m_BottomRightCornerType = eCornerType.Square;
#endregion
#region Internal Implementation
public Rectangle() { }
public Rectangle(ShapeBorder border)
{
m_Border = border;
}
public Rectangle(ShapeBorder border, int cornerSize, eCornerType cornerType)
{
m_Border = border;
m_CornerSize = cornerSize;
this.CornerType = cornerType;
}
public Rectangle(ShapeBorder border, ShapeFill fill)
{
m_Border = border;
m_Fill = fill;
}
public Rectangle(ShapeBorder border, ShapeFill fill,int cornerSize, eCornerType cornerType)
{
m_Border = border;
m_Fill = fill;
m_CornerSize = cornerSize;
this.CornerType = cornerType;
}
public Rectangle(ShapeBorder border, ShapeFill fill, int cornerSize, eCornerType cornerType, PaddingInfo padding)
{
m_Border = border;
m_Fill = fill;
m_CornerSize = cornerSize;
this.Padding = padding;
this.CornerType = cornerType;
}
public Rectangle(ShapeFill fill)
{
m_Fill = fill;
}
public override void Paint(ShapePaintInfo p)
{
System.Drawing.Rectangle bounds = this.GetBounds(p.Bounds);
Graphics g = p.Graphics;
PaintFill(g, bounds);
后面还有 152 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。