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


IRasterLayer.BandCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRasterLayer Interface > IRasterLayer.BandCount Property
ArcGIS Developer Help

IRasterLayer.BandCount Property

Number of bands in the layer.

[Visual Basic .NET]
Public ReadOnly Property BandCount As Integer
[C#]
public int BandCount {get;}
[C++]
HRESULT get_BandCount(
  System.Int32* BandCount
);
[C++]
Parameters
BandCount [out, retval]

BandCount is a parameter of type long*

Product Availability

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

See Also

IRasterLayer Interface