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


IRasterBandCollection.Item Method (ArcObjects .NET 10.5 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,
  IRasterBand** band
);
[C++]

Parameters BandIndex [in] BandIndex is a parameter of type long band [out, retval]
band is a parameter of type IRasterBand

Product Availability

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

See Also

IRasterBandCollection Interface

.NET Snippets

Create DistanceOp EucDistanceFull Direction Raster | Create DistanceOp CostDistanceFull Backlink Raster | Create DistanceOp CostDistanceFull Cost Allocation Raster | Create DistanceOp EucDistanceFull Allocation Raster | Create DistanceOp EucDistanceFull Distance Raster | Create DistanceOp CostDistanceFull Least Accumulative Cost 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