This document is archived and information here might be outdated.  Recommended version.

IRasterBandCollection.Add Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterBandCollection Interface > IRasterBandCollection.Add Method
ArcGIS Developer Help

IRasterBandCollection.Add Method

Adds a RasterBand to the band collection.

[Visual Basic .NET]
Public Sub Add ( _
    ByVal Element As IRasterBand, _
    ByVal index As Integer _
public void Add (
    IRasterBand Element,
    int index
  IRasterBand* Element,
  long index
Element [in]

Element is a parameter of type IRasterBand* index [in]
index is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


This method is only applicable to work with a Raster, not with a RasterDataset.

See Also

IRasterBandCollection Interface