コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GradientColorPickerItem"/> class.
        /// </summary>
        /// <param name="owner">The <see cref="GradientColorPicker"/> instance.</param>
        /// <param name="color">The item <see cref="Color"/>.</param>
        public GradientColorPickerItem(GradientColorPicker owner, Color color) : this()
        {
            this.owner = owner ?? throw new ArgumentNullException("owner");

            this.color = color;

            Width  = owner.ColorItemWidth;
            Height = owner.ColorItemHeight;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GradientColorPickerItemCollection"/> class.
 /// </summary>
 /// <param name="owner">The <see cref="GradientColorPicker"/></param>
 public GradientColorPickerItemCollection(GradientColorPicker owner)
 {
     Owner = owner ?? throw new ArgumentNullException("owner");
 }