ChartDirector 5.1 (.NET Edition)

LegendBox.setKeySize


Usage

[VB] Public Sub setKeySize(width As Integer [, height As Integer [, gap As Integer ]])
[C#] public void setKeySize(int width [, int height [, int gap ]]);

Description

Sets the size of the legend icon and its distance from the legend text.

Each legend entry consists of an icon and a text description. By default, the size of the icon and its distance from the text is determined automatically based on font size. This method can be used to override the default.

Arguments

ArgumentDefaultDescription
width(Mandatory)The width of the legend icon in pixels.
height-1The height of the legend icon in pixels. -1 means the height is automatically determined.
gap-1The distance between the legend icon and the legend text in pixels. -1 means the distance is automatically determined.

Return Value

None