ArcGIS Runtime SDK for WPF - Library Reference
AddRange Method
See Also 
ESRI.ArcGIS.Client Namespace > GraphicCollection Class : AddRange Method

items
A collection of Graphicitems
Adds graphic items to the end of the collection.

Syntax

Visual Basic (Declaration) 
Public Sub AddRange( _
   ByVal items As IEnumerable(Of Graphic) _
) 
C# 
public void AddRange( 
   IEnumerable<Graphic> items
)

Remarks

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

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.