LegendPlotExtensions
01 Syntax
Microsoft.VisualBasic.Data.ChartPlots.Graphic.Legend.LegendPlotExtensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ParseLegendStyle | 1 | 从字符串表达式之中解析出LegendStyles |
| LegendStyls | 1 | |
| DrawLegendShape | 1 | |
| DrawLegend | 1 | 函数返回最大的那个rectange的大小 |
| DrawLegends | 1 | gsize的默认值是(120,45) |
| MaxLegendSize | 1 | 这个函数返回legend之中的图例的标题字符串的最大绘制大小 |
03 Members
ParseLegendStyle(
String, LegendStyles)从字符串表达式之中解析出LegendStyles
Parameters
| Name | Type | Description |
|---|---|---|
str | String | - |
defaultStyle | LegendStyles | - |
LegendStyls(
String)Parameters
| Name | Type | Description |
|---|---|---|
expr$ | String |
|
Parameters
| Name | Type | Description |
|---|---|---|
g | IGraphics | Canvas device |
pos | PointF | The top left location of the shape rectangle |
gSize | SizeF | The shape size |
style | LegendStyles | The shape style |
color | Brush | The shape color |
border | Stroke | The shape polygon border, nothing means no border line will be draw. |
radius% | Int32 | - |
函数返回最大的那个rectange的大小
Parameters
| Name | Type | Description |
|---|---|---|
g | IGraphics | - |
pos | PointF | - |
l | SizeF | - |
canvas | LegendObject | 图例之中的图形的大小都是根据这个参数值来自动调整的 |
border | Stroke | 绘制每一个图例的边 |
DrawLegends(
IGraphics, PointF, IEnumerable(Of LegendObject), String, String, Int32, Stroke, Stroke, Boolean, Int32, Brush)gsize的默认值是(120,45)
Parameters
| Name | Type | Description |
|---|---|---|
g | IGraphics | - |
topLeft | PointF | - |
legends | IEnumerable(Of LegendObject) | - |
fillBg | String | The background color of the legend area, by default is transparent |
gSize | String | 单个legend图形的绘图区域的大小,图例之中的shap的大小都是根据这个参数来进行限制自动调整的 |
d% | Int32 | Interval distance between the legend graphics. |
regionBorder | Stroke | 整个图例的绘图区域的边框的绘制设置,如果这个参数值是空值,则不会做边框的绘制 |
radius | Stroke | 这个是用于圆角矩形的图例图形的绘制参数 |
MaxLegendSize(
IEnumerable(Of LegendObject), IGraphics)这个函数返回legend之中的图例的标题字符串的最大绘制大小
Parameters
| Name | Type | Description |
|---|---|---|
legends | IEnumerable(Of LegendObject) | - |
g | IGraphics | - |