Visual Basic (Declaration) | |
---|---|
Public Sub AddRange( _ ByVal items As IEnumerable(Of Graphic) _ ) |
C# | |
---|---|
public void AddRange( IEnumerable<Graphic> items ) |
The GraphicsLayer.Graphics.AddRange method provides significantly greater performance when adding multiple graphics than using the individual GraphicsLayer.Graphics.Add method. An example of using this method to improve performance is to use it to add the results of a featurelayer query in a batch rather than looping through each result individually.
Parameters
- items
- A collection of Graphicitems
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8