Skip to content

LegendItem

Namespace: ThinkGeo.Core

public class LegendItem

Inheritance ObjectLegendItem

Properties

TopPadding

public float TopPadding { get; set; }

Property Value

Single

BottomPadding

public float BottomPadding { get; set; }

Property Value

Single

LeftPadding

public float LeftPadding { get; set; }

Property Value

Single

RightPadding

public float RightPadding { get; set; }

Property Value

Single

ImageTopPadding

public float ImageTopPadding { get; set; }

Property Value

Single

ImageBottomPadding

public float ImageBottomPadding { get; set; }

Property Value

Single

ImageLeftPadding

public float ImageLeftPadding { get; set; }

Property Value

Single

ImageRightPadding

public float ImageRightPadding { get; set; }

Property Value

Single

TextTopPadding

public float TextTopPadding { get; set; }

Property Value

Single

TextBottomPadding

public float TextBottomPadding { get; set; }

Property Value

Single

TextLeftPadding

public float TextLeftPadding { get; set; }

Property Value

Single

TextRightPadding

public float TextRightPadding { get; set; }

Property Value

Single

Width

public float Width { get; set; }

Property Value

Single

Height

public float Height { get; set; }

Property Value

Single

ImageWidth

public float ImageWidth { get; set; }

Property Value

Single

ImageHeight

public float ImageHeight { get; set; }

Property Value

Single

ImageStyle

public Style ImageStyle { get; set; }

Property Value

Style

TextStyle

public TextStyle TextStyle { get; set; }

Property Value

TextStyle

BackgroundMask

public AreaStyle BackgroundMask { get; set; }

Property Value

AreaStyle

TextMask

public AreaStyle TextMask { get; set; }

Property Value

AreaStyle

ImageMask

public AreaStyle ImageMask { get; set; }

Property Value

AreaStyle

Ratio

public float Ratio { get; set; }

Property Value

Single

ImageJustificationMode

public LegendImageJustificationMode ImageJustificationMode { get; set; }

Property Value

LegendImageJustificationMode

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