EntityList.AddRange<T> (IEnumerable<T>, Int32, Color) Method

NOTE: This member is now obsolete. Use the method that accepts the layer name instead.

Adds the entities of the specified collection to the end of this collection using the specified layer and color.
Public Sub AddRange(Of  _ 
T As Entity)( _ 
ByVal collection As IEnumerable(Of T), _ 
ByVal layerIndex As Integer, _ 
ByVal color As Color
)
This language is not supported or no code example is available.
public void AddRange<T>( 
IEnumerable<T> collection
int layerIndex
Color color 

where T : Entity
This language is not supported or no code example is available.

Type Parameters

T

Parameters

collection
IEnumerable<T>

The collection whose entities should be added to the end of this collection.

layerIndex
int

The destination layer index

color
Color

The color assigned to the entities of the collection

Remarks
 
This method can be used only if the collection belong to a Environment.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition