Legend
Previous  Next

The Legend object provides the following methods and properties


Methods

Legend(width As Int32, height As Int32) :

Add(col As Color , name As String) : Adds the name string to the legend as the colour specified.

Draw :  Returns a bitmap of the drawn chart legend.


Properties

I signifies readable, O signifies settable.


BorderSize : Int32 [I/O] : Gets or sets the width of an invisible border between the drawn legend and the edges of the bitmap.

ControlRef : Control [I] : Gets the legend object so that it can be passed to the DrawWithLegend method of a chart.

Color : Color [I/O] : Gets or sets the background colour of a legend.

ColumnCount : Int32 [I/O] : Gets or sets the numbers of columns to draw in the legend.

ColumnGap : Int32 [I/O] : Gets or sets the size of the gap between columns in the legend.

Dllversion : Double [I] : The version number of this library.

Text : String [I/O] : Gets or sets the title displayed in the legend.