Exemple #1
0
        /// <summary>
        /// Adds the given <see cref="IColorTint"/> instance to this ColorTintList.
        /// </summary>
        /// <param name="colorTint">
        /// The IColorTint instance to add.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// If <paramref name="colorTint"/> is null.
        /// </exception>
        public void Add(IColorTint colorTint)
        {
            if (colorTint == null)
            {
                throw new ArgumentNullException("colorTint");
            }

            this.list.Add(colorTint);
        }
Exemple #2
0
 /// <summary>
 /// Tries to remove the given <see cref="IColorTint"/> instance from this ColorTintList.
 /// </summary>
 /// <param name="colorTint">
 /// The IColorTint instance to remove.
 /// </param>
 /// <returns>
 /// Whether the given <see cref="IColorTint"/> instance has been removed.
 /// </returns>
 public bool Remove(IColorTint colorTint)
 {
     return(this.list.Remove(colorTint));
 }