GradientStopCollection.CopyTo(GradientStop[], Int32) Метод
Определение
Копирует целый массив GradientStopCollection в совместимый одномерный массив Array, начиная с заданного индекса целевого массива.Copies the entire GradientStopCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
public:
virtual void CopyTo(cli::array <System::Windows::Media::GradientStop ^> ^ array, int index);
public void CopyTo (System.Windows.Media.GradientStop[] array, int index);
abstract member CopyTo : System.Windows.Media.GradientStop[] * int -> unit
override this.CopyTo : System.Windows.Media.GradientStop[] * int -> unit
Public Sub CopyTo (array As GradientStop(), index As Integer)
Параметры
- array
- GradientStop[]
Одномерный массив, в который копируются элементы из коллекции GradientStopCollection.The one-dimensional array that is the destination of the items copied from the GradientStopCollection. Индекс в массиве должен начинаться с нуля.The array must have zero-based indexing.
- index
- Int32
Отсчитываемый от нуля индекс в массиве array
, указывающий начало копирования.The zero-based index in array
at which copying begins.
Реализации
Исключения
array
имеет значение null
.array
is null
.
Значение параметра index
меньше нуля.index
is less than zero.
Массив array
является многомерным.array
is multidimensional.
-или--or-
Количество элементов в исходной коллекции GradientStopCollection превышает размер доступного места, начиная с индекса index
и до конца массива назначения array
.The number of items in the source GradientStopCollection is greater than the available space from index
to the end of the destination array
.