IRasterBandCollection.Item Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

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 Snippets

Create DistanceOp EucDistanceFull Direction Raster | Create DistanceOp EucDistanceFull Distance Raster | Create DistanceOp CostDistanceFull Backlink Raster | Create DistanceOp EucDistanceFull Allocation Raster | Create DistanceOp CostDistanceFull Least Accumulative Cost Raster | Create DistanceOp CostDistanceFull Cost Allocation Raster

.NET Samples

Create a custom default raster catalog renderer (Code Files: CustomRasterCatalogRenderer_VBNET) | Create a custom default raster renderer (Code Files: RasterRendererMaker_1bit_TIFF_VBNET)

.NET Related Topics

DataSourcesRaster | Geodatabase | Handling multiband output | How to access pixel data using the RawBlocks object | How to add or remove a color map from a raster dataset | How to create a raster dataset | How to pan sharpen an image | How to save and load color maps | Performing a spatial analysis operation using objects