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


IRasterBandCollection.Item 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.Item Method
ArcGIS Developer Help

IRasterBandCollection.Item Method

Returns a RasterBand given its index.

[Visual Basic .NET]
Public Function Item ( _
    ByVal BandIndex As Integer _
) As IRasterBand
[C#]
public IRasterBand Item (
    int BandIndex
);
[C++]
HRESULT Item(
  long BandIndex
);
[C++]
Parameters
BandIndex [in]

BandIndex is a parameter of type long

Product Availability

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

See Also

IRasterBandCollection Interface

.NET Samples

Create a custom default raster renderer Create a custom default raster catalog renderer