nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Data.ChartPlots / LegendPlotExtensions

LegendPlotExtensions

Full name Microsoft.VisualBasic.Data.ChartPlots.Graphic.Legend.LegendPlotExtensions Assembly Microsoft.VisualBasic.Data.ChartPlots Members 6

01 Syntax

Microsoft.VisualBasic.Data.ChartPlots.Graphic.Legend.LegendPlotExtensions

02 Methods

NameOverloadsSummary
ParseLegendStyle 1 从字符串表达式之中解析出LegendStyles
LegendStyls 1
DrawLegendShape 1
DrawLegend 1 函数返回最大的那个rectange的大小
DrawLegends 1 gsize的默认值是(120,45)
MaxLegendSize 1 这个函数返回legend之中的图例的标题字符串的最大绘制大小

03 Members

method ParseLegendStyle #
ParseLegendStyle(String, LegendStyles)

从字符串表达式之中解析出LegendStyles

Parameters
NameTypeDescription
strString

-

defaultStyleLegendStyles

-

method LegendStyls #
LegendStyls(String)
Parameters
NameTypeDescription
expr$String

a,b,c,d...

method DrawLegendShape #
DrawLegendShape(IGraphics, PointF, SizeF, LegendStyles, Brush, Stroke, Int32, PointF, Single)
Parameters
NameTypeDescription
gIGraphics

Canvas device

posPointF

The top left location of the shape rectangle

gSizeSizeF

The shape size

styleLegendStyles

The shape style

colorBrush

The shape color

borderStroke

The shape polygon border, nothing means no border line will be draw.

radius%Int32

-

method DrawLegend #
DrawLegend(IGraphics, PointF, SizeF, LegendObject, Stroke, Int32, Brush, Single)

函数返回最大的那个rectange的大小

Parameters
NameTypeDescription
gIGraphics

-

posPointF

-

lSizeF

-

canvasLegendObject

图例之中的图形的大小都是根据这个参数值来自动调整的

borderStroke

绘制每一个图例的边

method DrawLegends #
DrawLegends(IGraphics, PointF, IEnumerable(Of LegendObject), String, String, Int32, Stroke, Stroke, Boolean, Int32, Brush)

gsize的默认值是(120,45)

Parameters
NameTypeDescription
gIGraphics

-

topLeftPointF

-

legendsIEnumerable(Of LegendObject)

-

fillBgString

The background color of the legend area, by default is transparent

gSizeString

单个legend图形的绘图区域的大小,图例之中的shap的大小都是根据这个参数来进行限制自动调整的

d%Int32

Interval distance between the legend graphics.

regionBorderStroke

整个图例的绘图区域的边框的绘制设置,如果这个参数值是空值,则不会做边框的绘制

radiusStroke

这个是用于圆角矩形的图例图形的绘制参数

method MaxLegendSize #
MaxLegendSize(IEnumerable(Of LegendObject), IGraphics)

这个函数返回legend之中的图例的标题字符串的最大绘制大小

Parameters
NameTypeDescription
legendsIEnumerable(Of LegendObject)

-

gIGraphics

-