Source/ElementStyle/BackgroundColorBlendCollection.cs

(开头部分) 8KB

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

using System;
using System.Collections;
using System.Text;
using System.Drawing.Drawing2D;
using System.Drawing;

#if AdvTree
namespace DevComponents.Tree
#elif DOTNETBAR
namespace DevComponents.DotNetBar
#endif
{
    /// <summary>
    /// Represents Collection for the BackgroundColorBlend objects.
    /// </summary>
    public class BackgroundColorBlendCollection : CollectionBase
    {
        #region Private Variables
        private ElementStyle m_Parent = null; 
        #endregion

        #region Internal Implementation
        /// <summary>Creates new instance of the class.</summary>
        public BackgroundColorBlendCollection() {}

        internal ElementStyle Parent
        {
            get { return m_Parent; }
            set { m_Parent = value; }
        }

        /// <summary>
		/// Adds new object to the collection.
		/// </summary>
        /// <param name="item">Object to add.</param>
		/// <returns>Index of newly added object.</returns>
		public int Add(BackgroundColorBlend item)
		{
			return List.Add(item);
		}

        /// <summary>
        /// Adds array of new objects to the collection.
        /// </summary>
        /// <param name="items">Array of object to add.</param>
        public void AddRange(BackgroundColorBlend[] items)
        {
            foreach (BackgroundColorBlend item in items)
                this.Add(item);
        }

		/// <summary>
		/// Returns reference to the object in collection based on it's index.
		/// </summary>
		public BackgroundColorBlend this[int index]
		{
			get {return (BackgroundColorBlend)(List[index]);}
			set {List[index] = value;}
		}

后面还有 184 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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