DrawToolsRedux/Layer.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
namespace DrawTools
{
//[Serializable]
/// <summary>
/// Each <see cref="Layer"/> contains a list of Graphic Objects <see cref="GraphicsList"/>.
/// Each <see cref="Layer"/> is contained in the <see cref="Layers"/> collection.
/// Properties:
/// LayerName User-defined name of the Layer
/// Graphics Collection of <see cref="DrawObject"/>s in the Layer
/// IsVisible True if the <see cref="Layer"/> is visible
/// IsActive True if the <see cref="Layer"/> is the active <see cref="Layer"/> (only one <see cref="Layer"/> may be active at a time)
/// Dirty True if any object in the <see cref="Layer"/> is dirty
/// </summary>
public class Layer
{
private string _name;
private bool _isDirty;
private bool _visible;
private bool _active;
private GraphicsList _graphicsList;
/// <summary>
/// <see cref="Layer"/> Name (User-defined)
/// </summary>
public string LayerName
{
get { return _name; }
set { _name = value; }
}
/// <summary>
/// List of Graphic objects (derived from <see cref="DrawObject"/>) contained by this <see cref="Layer"/>
/// </summary>
public GraphicsList Graphics
{
get { return _graphicsList; }
set { _graphicsList = value; }
}
/// <summary>
/// Returns True if this <see cref="Layer"/> is visible, else False
/// </summary>
public bool IsVisible
{
get { return _visible; }
set { _visible = value; }
}
/// <summary>
/// Returns True if this is the active <see cref="Layer"/>, else False
/// </summary>
public bool IsActive
{
get { return _active; }
后面还有 115 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。