MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>
/// Find the raster layer by key (specified in the "name" parameter) within the collection of
/// StaticLayers.
/// </summary>
/// <returns>The corresponding RasterLayer with the passing specified in the MapControl.</returns>
/// <param name="name">The key to find the final result raster layer.</param>
Find the raster layer by key (specified in the "name" parameter) within the collection of
StaticLayers.
Find the raster layer by key ( specified in the " name " parameter ) within the collection of StaticLayers .
public RasterLayer FindStaticRasterLayer(string name)
        {
            RasterLayer rasterLayer = null;
            if (staticLayers.Contains(name))
            {
                rasterLayer = staticLayers[name] as RasterLayer;
            }
            return rasterLayer;
        }
public RasterLayer FindStaticRasterLayer ( string name ) { RasterLayer rasterLayer = null ; if ( staticLayers . Contains ( name ) ) { rasterLayer = staticLayers [ name ] as RasterLayer ; } return rasterLayer ; }
Find the raster layer by key (specified in the "name" parameter) within the collection of
StaticLayers.
Find the raster layer by key ( specified in the " name " parameter ) within the collection of StaticLayers .
The corresponding RasterLayer with the passing specified in the MapControl.
The corresponding RasterLayer with the passing specified in the MapControl .
name
string
The key to find the final result raster layer.
The key to find the final result raster layer .