Inserts layers at a given index of the map's group layer.
[Visual Basic 6.0] Sub InsertLayersInGroup(
ByVal pGroup As IGroupLayer, _
ByVal pLayer As IEnumLayer, _
ByVal autoArrange As Boolean, _
ByVal position As Long _
)
[Visual Basic .NET] Public Sub InsertLayersInGroup ( _ ByVal pGroup As IGroupLayer, _ ByVal pLayer As IEnumLayer, _ ByVal autoArrange As Boolean, _ ByVal position As Integer _ )
[C#] public void InsertLayersInGroup ( IGroupLayer pGroup, IEnumLayer pLayer, bool autoArrange, int position );
[Java] public void insertLayersInGroup ( IGroupLayer pGroup, IEnumLayer pLayer, Boolean autoArrange, int position ) throws IOException, AutomationException
[C++] HRESULT InsertLayersInGroup( IGroupLayer* pGroup, IEnumLayer* pLayer, VARIANT_BOOL autoArrange, long position );
Parameters
pGroup [in]
pGroup is a parameter of type IGroupLayer
pLayer [in]
pLayer is a parameter of type IEnumLayer
autoArrange [in]
autoArrange is a parameter of type VARIANT_BOOL
position [in]
position is a parameter of type long
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the sequence of layers is by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.