DrawToolsRedux/DrawObject.cs
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.Runtime.Serialization;
using System.Windows.Forms;
namespace DrawTools
{
/// <summary>
/// Base class for all draw objects
/// </summary>
[Serializable]
public abstract class DrawObject : IComparable
{
#region Members
// Object properties
private bool selected;
private Color color;
private Color fillColor;
private bool filled;
private int penWidth;
private Pen drawpen;
private Brush drawBrush;
private DrawingPens.PenType _penType;
private FillBrushes.BrushType _brushType;
private string tipText;
// Last used property values (may be kept in the Registry)
private static Color lastUsedColor = Color.Black;
private static int lastUsedPenWidth = 1;
// Entry names for serialization
private const string entryColor = "Color";
private const string entryPenWidth = "PenWidth";
private const string entryPen = "DrawPen";
private const string entryBrush = "DrawBrush";
private const string entryFillColor = "FillColor";
private const string entryFilled = "Filled";
private const string entryZOrder = "ZOrder";
private const string entryRotation = "Rotation";
private const string entryTipText = "TipText";
private bool dirty;
private int _id;
private int _zOrder;
private int _rotation = 0;
private Point _center;
#endregion Members
#region Properties
/// <summary>
/// Center of the object being drawn.
/// </summary>
public Point Center
{
get { return _center; }
set { _center = value; }
}
后面还有 540 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。