Geoprocessor gp = new Geoprocessor(); GetRasterProperties getRP = new GetRasterProperties(); getRP.in_raster = rlyr.Raster; getRP.property_type = "COLUMNCOUNT"; gp.Execute(getRP, null); double cntcol = getRP.property; getRP.property_type = "ROWCOUNT"; gp.Execute(getRP, null); double cntrow = getRP.property;