[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.ITextRange.InsertChartField

InsertChartField Method

InsertChartField(ChartFieldType, string, int)

Inserts a field into the body of a data label in a chart.

Declaration
void InsertChartField(ChartFieldType fieldType, string formula = null, int position = -1)
Sub InsertChartField(fieldType As ChartFieldType, Optional formula As String = Nothing, Optional position As Integer = -1)
Parameters
Type Name Description
ChartFieldType fieldType

Specifies the type of chart field to insert into a data label.

string formula

Specifies a cell (or range) if the GrapeCity.Spreadsheet.Charts.ChartFieldType.Formula constant is passed in for the ChartFieldType parameter.

int position

Specifies the character position where the chart field is inserted. The default is to append the field to the end of the text. If the position value is out of range, the default is used.

Remarks

This method applies only to data labels in a chart.