Source/ElementStyle/BackgroundColorBlend.cs

(开头部分) 2KB

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

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

#if AdvTree
namespace DevComponents.Tree
#elif DOTNETBAR
namespace DevComponents.DotNetBar
#endif
{
    /// <summary>
    /// Defines single color blend point for the multicolor gradient fills.
    /// </summary>
    [ToolboxItem(false),DesignTimeVisible(false),TypeConverter(typeof(BackgroundColorBlendConverter))]
    public class BackgroundColorBlend
    {
        #region Private Variables
        private Color m_Color = Color.Empty;
        private float m_Position = 0;
        #endregion

        #region Internal Implementation
        /// <summary>
        /// Creates new instance of the class. When defining multicolor gradinet blends and using the percentage positions the positions created
        /// must start with 0f and end with 1f.
        /// </summary>
        public BackgroundColorBlend() {}

        /// <summary>
        /// Creates new instance of the class and initialize it with default values.
        /// </summary>
        public BackgroundColorBlend(Color color, float position)
        {
            m_Color=color;
            m_Position=position;
        }

        /// <summary>
        /// Creates new instance of the class and initialize it with default values.
        /// </summary>
        public BackgroundColorBlend(int color, float position)
        {
            m_Color = ColorScheme.GetColor(color);
            m_Position = position;
        }

        /// <summary>
        /// Gets or sets Color to use in multicolor gradient blend at specified position.
        /// </summary>
        [Browsable(true), Description("Indicates the Color to use in multicolor gradient blend at specified position.")]
        public Color Color
        {
            get { return m_Color; }
            set
            {
                m_Color = value;
                OnColorBlendChanged();
            }
        }
后面还有 27 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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