MapWindowDevelper:Layer
From MapWindow GIS
MapWindow.Interfaces.Layer
This interface is used to access properties and methods for a layer.
Property Members
| Name | Access | Summary |
|---|---|---|
| Color : Color | public | Gets or sets the color of this shapefile. Applies only to
shapefiles. Setting the color of the shapefile will clear any selected shapes and will also reset each individual shape to the same color. The coloring scheme will also be overriden. |
| ColoringScheme : Object | public | Gets or sets the coloring scheme. The Shapefile and Grid
objects each have their own coloring scheme object. It is important to cast the ColoringScheme to the proper type. |
| DrawFill : Boolean | public | Gets or sets whether or not to draw the fill for a polygon shapefile. |
| DynamicVisibilityExtents : Extents | public | Gets or sets the extents where the layer changes from visible
to not visible or vice versa. If the map is zoomed beyond these extents, the layer is invisible until the map is zoomed to be within these extents. |
| Expanded : Boolean | public | Gets or sets whether the layer's coloring scheme is expanded in the legend. |
| Extents : Extents | public | Returns the extents of this layer. |
| FileName : String | public | Returns the filename of this layer. If the layer is memory-based only it may not have a valid filename. |
| FillStipple : tkFillStipple | public | Gets or sets the stipple pattern to use for the entire
shapefile. The valid values for this property are: lsCustomlsDashDotDashlsDashedlsDottedlsNone |
| GetGridObject : Grid | public | Returns the MapWinGIS.Grid object associated with the layer. If the layer is not a grid layer, "Nothing" will be returned. |
| GlobalPosition : Int32 | public | Gets or sets the position of the layer without respect to any group. |
| GroupHandle : Int32 | public | Gets or sets the handle of the group that this layer belongs to. |
| GroupPosition : Int32 | public | Gets or sets the position of the layer within a group. |
| Handle : Int32 | public | Returns the layer handle of this layer. The MapWindow
automatically sets the LayerHandle for the layer, and it cannot be reset. |
| Icon : Object | public | Gets or sets the icon to use in the legend for this layer. |
| ImageTransparentColor : Color | public | Gets or sets the color that represents transparent in an Image layer. |
| LabelsOffset : Int32 | public | Determines the distance from the label point to the text for the label in pixels. |
| LabelsScale : Boolean | public | Determines whether labels are scaled for this layer. |
| LabelsShadow : Boolean | public | Determines whether labels are shadowed for this layer. |
| LabelsShadowColor : Color | public | Determines the color of the labels shadows. |
| LabelsVisible : Boolean | public | Turns labels on or off for this layer. |
| LayerType : eLayerType | public | Returns the type of this layer. Valid values are: Grid Image Invalid LineShapefile PointShapefile PolygonShapefile |
| LineOrPointSize : Single | public | Gets or sets the line or point size. If the PointType is
ptUserDefined then the size of the user defined point will be multiplied by the LineOrPointSize. For all other points and for lines, the LineOrPointSize is represented in pixels. |
| LineSeparationFactor : Int32 | public | Sets the width between lines for multiple-line drawing styles (e.g, doublesolid). |
| LineStipple : tkLineStipple | public | Gets or sets the stipple pattern to use for the entire
shapefile. The valid values for this property are: lsCustomlsDashDotDashlsDashedlsDottedlsNone |
| Name : String | public | Gets or sets the layer name. |
| OutlineColor : Color | public | Gets or sets the outline color for this layer. Only applies to polygon shapefile layers. |
| PointType : tkPointType | public | Gets or sets the point type for this shapefile. The valid
values for this property are: ptCircleptDiamondptSquareptTriangleDownptTriangleLeftptTriangleRightptTriangleUpptUserDefined |
| Shapes : Shapes | public | This property gives access to all shapes in the layer. Only applies to shapefile layers. |
| StandardViewWidth : Double | public | This property allows the user to select the standard view width for the layer. |
| Tag : String | public | Gets or sets the tag for this layer. The tag is simply a string
that can be used by the programmer to store any information desired. |
| UseDynamicVisibility : Boolean | public | Specifies whether or not to use DynamicVisibility. |
| UseLabelCollision : Boolean | public | Determines whether MapWinGIS ocx will hide labels which collide with already drawn labels or not. |
| UserLineStipple : Int32 | public | Gets or sets the user defined line stipple. A line stipple is
simply a 32-bit integer whose bits define a pattern that can be displayed on the screen. For example, the value 0011 0011 in binary would represent a dashed line ( -- --). |
| UserPointType : Image | public | Gets or sets the user defined point image for this layer. To
display the user defined point the layer's PointType must be set to ptUserDefined. |
| UseTransparentColor : Boolean | public | Gets or sets whether to use transparency on an Image layer. |
| Visible : Boolean | public | Gets or sets whether the layer is visible. |
Method Members
| Name | Access | Summary |
|---|---|---|
| AddLabel() : Void | public | Adds a label to this layer. |
| AddLabelEx() : Void | public | Adds an extended label to this layer. |
| ClearLabels() : Void | public | Clears all labels for this layer. |
| Font() : Void | public | Sets the font to use for all labels on this layer. |
| GetObject() : Object | public | Gets the underlying MapWinGIS object for this layer. The object
can be either a MapWinGIS.Shapefile or a MapWinGIS.Image. If the layer is a grid layer the MapWinGIS.Grid object can be retrieved using the GetGridObject method. |
| GetUserFillStipple() : Int32 | public | Gets a single row in the user defined line stipple. There are
32 rows in a fill stipple (0-31). Each row is defined the same way as a UserLineStipple. |
| HideVertices() : Void | public | Hides all vertices in the shapefile. Only applies to line and polygon shapefiles. |
| MoveTo() : Void | public | Moves this layer to a new position in the layer list. The highest position is the topmost layer in the display. |
| SetUserFillStipple() : Void | public | Sets a single row in the user defined line stipple. There are
32 rows in a fill stipple (0-31). Each row is defined the same way as a UserLineStipple. |
| ShowVertices() : Void | public | Shows all vertices for the entire shapefile. Applies only to line and polygon shapefiles. |
| UpdateLabelInfo() : Void | public | Updates the label information file stored for this layer. |
| ZoomTo() : Void | public | Zooms the display to this layer, taking into acount the View.ExtentPad. |
















