コード例 #1
0
    public void Insert(int index, GradientStop stop)
    {
      if (stop == null)
      {
        throw new ArgumentNullException("stop");
      }

      List.Insert(index, stop);
    }
コード例 #2
0
    public int IndexOf(GradientStop stop)
    {
      if (stop == null)
      {
        throw new ArgumentNullException("stop");
      }

      return List.IndexOf(stop);
    }
コード例 #3
0
    public void CopyTo(GradientStop[] array, int arrayIndex)
    {
      if (array == null)
      {
        throw new ArgumentNullException("array");
      }

      List.CopyTo(array, arrayIndex);
    }
コード例 #4
0
    public bool Contains(GradientStop stop)
    {
      if (stop == null)
      {
        throw new ArgumentNullException("stop");
      }

      return List.Contains(stop);
    }
コード例 #5
0
    public void Add(GradientStop stop)
    {
      if (stop == null)
      {
        throw new ArgumentNullException("stop");
      }

      List.Add(stop);
    }
コード例 #6
0
    public bool Remove(GradientStop stop)
    {
      if (stop == null)
      {
        throw new ArgumentNullException("stop");
      }

      if (List.Contains(stop) == false)
      {
        return false;
      }

      List.Remove(stop);

      return true;
    }