Source/Presentation/Location.cs

(完整代码) 1KB

using System;
using System.Text;

namespace DevComponents.DotNetBar.Presentation
{
    /// <summary>
    /// Describes the shape location.
    /// </summary>
    internal class Location
    {
        public Location() { }
        public Location(int x, int y)
        {
            this.X = x;
            this.Y = y;
        }
        public Location(int x, int y, eRelativeLocation relativeX, eRelativeLocation relativeY)
        {
            this.X = x;
            this.Y = y;
            this.RelativeX = relativeX;
            this.RelativeY = relativeY;
        }

        /// <summary>
        /// Gets or sets the X location of the shape relative to it's parent.
        /// </summary>
        public int X = 0;
        /// <summary>
        /// Gets or sets the Y location of the shape relative to it's parent.
        /// </summary>
        public int Y = 0;
        /// <summary>
        /// Gets or sets the relative X position.
        /// </summary>
        public eRelativeLocation RelativeX = eRelativeLocation.NotSet;
        /// <summary>
        /// Gets or sets the relative Y position.
        /// </summary>
        public eRelativeLocation RelativeY = eRelativeLocation.NotSet;
    }

    /// <summary>
    /// Describes the relative location.
    /// </summary>
    internal enum eRelativeLocation
    {
        NotSet,
        Top,
        Left,
        Right,
        Bottom
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。