Source/RoundRectangleShapeDescriptor.cs

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Text;
using System.ComponentModel;
using System.Drawing.Drawing2D;
using System.Drawing;
using System.Globalization;
using System.ComponentModel.Design.Serialization;
using System.Reflection;

namespace DevComponents.DotNetBar
{

    /// <summary>
    /// Describes the round rectangle shape.
    /// </summary>
    [System.ComponentModel.ToolboxItem(false), System.ComponentModel.DesignTimeVisible(false), TypeConverter(typeof(RoundRectangleShapeDescriptorConverter))]
    public class RoundRectangleShapeDescriptor : ShapeDescriptor
    {
        #region Constructor
        /// <summary>
        /// Initializes a new instance of the RoundCornerDescriptor class.
        /// </summary>
        public RoundRectangleShapeDescriptor()
        {
        }

        /// <summary>
        /// Initializes a new instance of the RoundCornerDescriptor class.
        /// </summary>
        public RoundRectangleShapeDescriptor(int cornerSize) : this(cornerSize, cornerSize, cornerSize, cornerSize)
        {
        }

        /// <summary>
        /// Initializes a new instance of the RoundCornerDescriptor class.
        /// </summary>
        /// <param name="topLeft"></param>
        /// <param name="topRight"></param>
        /// <param name="bottomLeft"></param>
        /// <param name="bottomRight"></param>
        public RoundRectangleShapeDescriptor(int topLeft, int topRight, int bottomLeft, int bottomRight)
        {
            _TopLeft = topLeft;
            _TopRight = topRight;
            _BottomLeft = bottomLeft;
            _BottomRight = bottomRight;
        }
        #endregion

        #region Internal Implementation
        private int _TopLeft = 0;
        /// <summary>
        /// Gets or sets the top-left round corner size.
        /// </summary>
        [DefaultValue(0), Description("Gets or sets the top-left round corner size.")]
        public int TopLeft
        {
            get { return _TopLeft; }
            set
            {
后面还有 205 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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