Source/Presentation/Shape.cs

(开头部分) 6KB

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

using System;
using System.Text;
using System.Drawing;

namespace DevComponents.DotNetBar.Presentation
{
    internal class Shape
    {
        #region Private Variables
        private Location m_Location = new Location();
        private SizeInfo m_Size = new SizeInfo();
        private ShapeCollection m_Children = null;
        private PaddingInfo m_Padding = null;
        private bool m_SetChildClip = false;
        #endregion

        #region Internal Implementation
        /// <summary>
        /// Gets the location of the shape.
        /// </summary>
        public Location Location
        {
            get { return m_Location; }
        }

        /// <summary>
        /// Gets the size of the shape.
        /// </summary>
        public SizeInfo Size
        {
            get { return m_Size; }
        }

        /// <summary>
        /// Gets the shape padding. Padding is the inside spacing between shape and it's child shapes.
        /// </summary>
        public PaddingInfo Padding
        {
            get { return m_Padding; }
            set
            {
                m_Padding = value;
            }
        }

        /// <summary>
        /// Gets the collection of child shapes.
        /// </summary>
        public ShapeCollection Children
        {
            get
            {
                if (m_Children == null)
                    m_Children = new ShapeCollection();
                return m_Children;
            }
        }

        /// <summary>
        /// Gets or sets whether this shape will set the ShapePaintInfo.ChildContentClip property to the region that represents the inside content of the shape.
后面还有 125 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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