LegendItem¶
Namespace: ThinkGeo.Core
public class LegendItem
Inheritance Object → LegendItem
Properties¶
TopPadding¶
public float TopPadding { get; set; }
Property Value¶
BottomPadding¶
public float BottomPadding { get; set; }
Property Value¶
LeftPadding¶
public float LeftPadding { get; set; }
Property Value¶
RightPadding¶
public float RightPadding { get; set; }
Property Value¶
ImageTopPadding¶
public float ImageTopPadding { get; set; }
Property Value¶
ImageBottomPadding¶
public float ImageBottomPadding { get; set; }
Property Value¶
ImageLeftPadding¶
public float ImageLeftPadding { get; set; }
Property Value¶
ImageRightPadding¶
public float ImageRightPadding { get; set; }
Property Value¶
TextTopPadding¶
public float TextTopPadding { get; set; }
Property Value¶
TextBottomPadding¶
public float TextBottomPadding { get; set; }
Property Value¶
TextLeftPadding¶
public float TextLeftPadding { get; set; }
Property Value¶
TextRightPadding¶
public float TextRightPadding { get; set; }
Property Value¶
Width¶
public float Width { get; set; }
Property Value¶
Height¶
public float Height { get; set; }
Property Value¶
ImageWidth¶
public float ImageWidth { get; set; }
Property Value¶
ImageHeight¶
public float ImageHeight { get; set; }
Property Value¶
ImageStyle¶
public Style ImageStyle { get; set; }
Property Value¶
TextStyle¶
public TextStyle TextStyle { get; set; }
Property Value¶
BackgroundMask¶
public AreaStyle BackgroundMask { get; set; }
Property Value¶
TextMask¶
public AreaStyle TextMask { get; set; }
Property Value¶
ImageMask¶
public AreaStyle ImageMask { get; set; }
Property Value¶
Ratio¶
public float Ratio { get; set; }
Property Value¶
ImageJustificationMode¶
public LegendImageJustificationMode ImageJustificationMode { get; set; }
Property Value¶
Constructors¶
LegendItem()¶
public LegendItem()
LegendItem(Int32, Int32, Single, Single, Style, TextStyle)¶
public LegendItem(int width, int height, float imageWidth, float imageHeight, Style imageStyle, TextStyle textStyle)
Parameters¶
width Int32
height Int32
imageWidth Single
imageHeight Single
imageStyle Style
textStyle TextStyle
Methods¶
Draw(GeoCanvas, Collection<SimpleCandidate>, LegendDrawingParameters)¶
public void Draw(GeoCanvas adornmentGeoCanvas, Collection<SimpleCandidate> labelsInAllLayers, LegendDrawingParameters legendDrawingParameters)
Parameters¶
adornmentGeoCanvas GeoCanvas
labelsInAllLayers Collection<SimpleCandidate>
legendDrawingParameters LegendDrawingParameters
DrawCore(GeoCanvas, Collection<SimpleCandidate>, LegendDrawingParameters)¶
protected void DrawCore(GeoCanvas adornmentGeoCanvas, Collection<SimpleCandidate> labelsInAllLayers, LegendDrawingParameters legendDrawingParameters)
Parameters¶
adornmentGeoCanvas GeoCanvas
labelsInAllLayers Collection<SimpleCandidate>
legendDrawingParameters LegendDrawingParameters
UpdateSizeByTextLength(GeoCanvas, Double)¶
public void UpdateSizeByTextLength(GeoCanvas canvas, double zoomRatio)
Parameters¶
canvas GeoCanvas
zoomRatio Double