The Layer class represents a geographic data layer on a Map.


The following tables list the members exposed by Layer.

Public Constructors

  Name Description
Public method Layer Initializes a new instance of the Layer class.
Top

Public Properties

  Name Description
Public property CharSet Indicates a character set.
Public property ChartRenderer Returns the ChartRenderer associated with the Layer.
Public property CoordinateSystem Gets or sets the coordinate system for the Layer.
Public property Description Provides a textual description of the Layer.
Public property DrawLabelsImmediately Gets or sets a value indicating whether the layer labels will be drawn immediately after the layer (False by default).
Public property DuplicateLabels Gets or sets a value indicating whether duplicate labels are allowed.
Public property EnablePassthroughQuery Specifies whether expressions must be passed to the database server. This property is for spatial database layers only (SpatialDatabaseLayer).
Public property Extent Returns the spatial extent of the Layer.
Public property LabelExpression Gets or sets a expression.
Public property LabelField Gets or sets a string expression that specifies a name of a field in the Recordset of the Layer.
Public property LabelFont Returns the default font of the Layer.
Public property LabelMaxScale Gets or sets the maximum scale at which the labels of the Layer are visible.
Public property LabelMinScale Gets or sets the minimum scale at which the labels of the Layer are visible.
Public property LabelStyle Gets or sets the label placement style for the Layer.
Public property LayerType Gets a value that indicates the type of the Layer.
Public property MaxScale Gets or sets the maximum scale at which the Layer is visible.
Public property MinScale Gets or sets the minimum scale at which the Layer is visible.
Public property Name Returns or sets a user-defined name of the Layer.
Public property Opacity Returns or sets the opacity of the Layer.
Public property Recordset Returns the Recordset associated with a Layer.
Public property Renderer Returns the FeatureRenderer associated with the Layer.
Public property ShieldSymbol Returns a reference to the shield Symbol of a Layer.
Public property ShowLabels Gets or sets a value indicating whether the Layer labels are visible or hidden (False by default).
Public property Symbol Returns the default symbol of the Layer.
Public property Tag Gets or sets a value that stores any extra data needed for your application.
Public property UseDefaultSymbol Gets or sets a value that indicates whether or not the Layer's Renderer should use the default symbol of the Layer to draw layer features that are not listed explicitly.
Public property Visible Gets or sets a value indicating whether the Layer is visible or hidden.
Top

Public Methods

  Name Description
Public method AddRelate Creates a relate between the Recordset associated with the Layer and a DataSource object.
Public method Dispose  
Public method GetPixelValue Retrieves the red, green, blue (RGB) color value (for 24-bit images) or the palette index (for 8-bit images) of the image pixel at the specified coordinates. This method is for image layers only.
Public method NewRecord Creates a new record in the data source associated with the layer.
Public method Static Open Opens a layer.
Public method RemoveRelates Removes all related fields from the Recordset of a Layer that were created by an AddRelate method call.
Public method SearchBuffer Overloaded. Creates a Recordset based on a search for all features within a distance from a line shape that meet the criteria in an expression.
Public method SearchByDistance Overloaded. Creates a Recordset based on a search for all features within a distance from a point that meet the criteria in an expression.
Public method SearchExpression Creates a Recordset based on a search for all features that meet the criteria in an expression.
Public method SearchNearest Overloaded. Creates a Recordset that returns the rows that are closest to the given search point. The records in the Recordset are sorted by the distance from the search point. The distance parameter is used to narrow down the search to only those shapes that fall within the distance from the search point.
Public method SearchShape Overloaded. Creates a Recordset of all features that meet both the spatial search criteria specified by the SearchMethod constant, and the logical search criteria in an expression.
Top

See Also