[]
Represents a legend item describing a map layer or a layer style.
The layer may belong to a different map in the report. This may be used to place a legend outside the map's bounds for instance.
If no layer or style is associated with the legend item, arbitrary markers, colors etc may be selected.
public class LegendLayerStyleItem : LegendItemBase, ILegendItem
Name | Description |
---|---|
LegendLayerStyleItem() | |
LegendLayerStyleItem(Map) |
Name | Description |
---|---|
BaseName | Gets a one word description of the item type (e.g. "Layer"). Also used to automatically generate new items' names. |
Caption | Gets or sets the caption of this legend item. May be empty, in which case the caption is retrieved from the associated layer if possible. |
DashStyle | Gets or sets the line dash style used to draw line kind graphic shown by this legend item. If a layer or style is associated with this item, the value of this property is determined by it and cannot be changed. |
Fill | Gets or sets the fill color used to draw the graphic shown by this legend item. If a layer or style is associated with this item, the value of this property is determined by it and cannot be changed. |
GraphicKind | Gets or sets the kind of graphic shown by the current legend item. If a layer or style is associated with this item, the value of this property is determined by it and cannot be changed. |
Kind | |
LayerStyle | Gets or sets the layer or style associated with the current legend item. The layer or style may belong to a different Map in the report. |
LineThickness | Gets or sets the line thickness used to draw line kind graphic shown by this legend item. Specify -1 to use the default. |
MarkerShape | Gets or sets the marker shape used to draw point kind graphic shown by this legend item. If a layer or style is associated with this item, the value of this property is determined by it and cannot be changed. |
MarkerSize | Gets or sets the marker size used to draw point kind graphic shown by this legend item. Specify -1 to use the default. |
Stroke | Gets or sets the stroke color used to draw the graphic shown by this legend item. If a layer or style is associated with this item, the value of this property is determined by it and cannot be changed. |
TargetKey | Gets or sets the key identifying the layer or style associated with this legend item. May be null or empty, in which case the item is not associated with any layer or style. |
Name | Description |
---|---|
OnItemSelectedInEditor() | Called by design time editor when item is selected. Allows to update readonly-ness of properties depending on values etc. |
ShouldSerializeDashStyle() | |
ShouldSerializeFill() | |
ShouldSerializeFillXml() | |
ShouldSerializeGraphicKind() | |
ShouldSerializeMarkerShape() | |
ShouldSerializeStroke() | |
ShouldSerializeStrokeXml() |