ExcelScript.ChartTrendlineLabel interface

此对象表示图表趋势线标签对象的属性。

方法

getAutoText()

指定趋势线标签是否根据上下文自动生成适当的文本。

getFormat()

图表趋势线标签的格式。

getFormula()

表示使用 A1 样式表示法的图表趋势线标签公式的字符串值。

getHeight()

返回图表趋势线标签的高度,以磅为单位。 null如果图表趋势线标签不可见,则值为 。

getHorizontalAlignment()

表示图表趋势线标签的水平对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextHorizontalAlignment。 仅当趋势线标签为 -90、90 或 180 时 TextOrientation ,此属性才有效。

getLeft()

表示从图表趋势线标签的左边缘到图表区左边缘的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

getLinkNumberFormat()

指定数字格式是否链接到单元格 (以便数字格式在单元格) 更改时在标签中更改。

getNumberFormat()

表示趋势线标签的格式代码的字符串值。

getText()

该字符串表示图表上的趋势线标签文本。

getTextOrientation()

表示文本针对图表趋势线标签的方向角度。 对于垂直方向文本,该值应为 -90 到 90 的整数或整数 180。

getTop()

表示从图表趋势线标签的上边缘到图表区顶部的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

getVerticalAlignment()

表示图表趋势线标签的垂直对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextVerticalAlignment。 仅当趋势线标签为 0 时 TextOrientation ,此属性才有效。

getWidth()

返回图表趋势线标签的宽度,以磅为单位。 null如果图表趋势线标签不可见,则值为 。

setAutoText(autoText)

指定趋势线标签是否根据上下文自动生成适当的文本。

setFormula(formula)

表示使用 A1 样式表示法的图表趋势线标签公式的字符串值。

setHorizontalAlignment(horizontalAlignment)

表示图表趋势线标签的水平对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextHorizontalAlignment。 仅当趋势线标签为 -90、90 或 180 时 TextOrientation ,此属性才有效。

setLeft(left)

表示从图表趋势线标签的左边缘到图表区左边缘的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

setLinkNumberFormat(linkNumberFormat)

指定数字格式是否链接到单元格 (以便数字格式在单元格) 更改时在标签中更改。

setNumberFormat(numberFormat)

表示趋势线标签的格式代码的字符串值。

setText(text)

该字符串表示图表上的趋势线标签文本。

setTextOrientation(textOrientation)

表示文本针对图表趋势线标签的方向角度。 对于垂直方向文本,该值应为 -90 到 90 的整数或整数 180。

setTop(top)

表示从图表趋势线标签的上边缘到图表区顶部的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

setVerticalAlignment(verticalAlignment)

表示图表趋势线标签的垂直对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextVerticalAlignment。 仅当趋势线标签为 0 时 TextOrientation ,此属性才有效。

方法详细信息

getAutoText()

指定趋势线标签是否根据上下文自动生成适当的文本。

getAutoText(): boolean;

返回

boolean

getFormat()

图表趋势线标签的格式。

getFormat(): ChartTrendlineLabelFormat;

返回

getFormula()

表示使用 A1 样式表示法的图表趋势线标签公式的字符串值。

getFormula(): string;

返回

string

getHeight()

返回图表趋势线标签的高度,以磅为单位。 null如果图表趋势线标签不可见,则值为 。

getHeight(): number;

返回

number

getHorizontalAlignment()

表示图表趋势线标签的水平对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextHorizontalAlignment。 仅当趋势线标签为 -90、90 或 180 时 TextOrientation ,此属性才有效。

getHorizontalAlignment(): ChartTextHorizontalAlignment;

返回

getLeft()

表示从图表趋势线标签的左边缘到图表区左边缘的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

getLeft(): number;

返回

number

getLinkNumberFormat()

指定数字格式是否链接到单元格 (以便数字格式在单元格) 更改时在标签中更改。

getLinkNumberFormat(): boolean;

返回

boolean

getNumberFormat()

表示趋势线标签的格式代码的字符串值。

getNumberFormat(): string;

返回

string

getText()

该字符串表示图表上的趋势线标签文本。

getText(): string;

返回

string

getTextOrientation()

表示文本针对图表趋势线标签的方向角度。 对于垂直方向文本,该值应为 -90 到 90 的整数或整数 180。

getTextOrientation(): number;

返回

number

getTop()

表示从图表趋势线标签的上边缘到图表区顶部的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

getTop(): number;

返回

number

getVerticalAlignment()

表示图表趋势线标签的垂直对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextVerticalAlignment。 仅当趋势线标签为 0 时 TextOrientation ,此属性才有效。

getVerticalAlignment(): ChartTextVerticalAlignment;

返回

getWidth()

返回图表趋势线标签的宽度,以磅为单位。 null如果图表趋势线标签不可见,则值为 。

getWidth(): number;

返回

number

setAutoText(autoText)

指定趋势线标签是否根据上下文自动生成适当的文本。

setAutoText(autoText: boolean): void;

参数

autoText

boolean

返回

void

setFormula(formula)

表示使用 A1 样式表示法的图表趋势线标签公式的字符串值。

setFormula(formula: string): void;

参数

formula

string

返回

void

setHorizontalAlignment(horizontalAlignment)

表示图表趋势线标签的水平对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextHorizontalAlignment。 仅当趋势线标签为 -90、90 或 180 时 TextOrientation ,此属性才有效。

setHorizontalAlignment(
            horizontalAlignment: ChartTextHorizontalAlignment
        ): void;

参数

返回

void

setLeft(left)

表示从图表趋势线标签的左边缘到图表区左边缘的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

setLeft(left: number): void;

参数

left

number

返回

void

setLinkNumberFormat(linkNumberFormat)

指定数字格式是否链接到单元格 (以便数字格式在单元格) 更改时在标签中更改。

setLinkNumberFormat(linkNumberFormat: boolean): void;

参数

linkNumberFormat

boolean

返回

void

setNumberFormat(numberFormat)

表示趋势线标签的格式代码的字符串值。

setNumberFormat(numberFormat: string): void;

参数

numberFormat

string

返回

void

setText(text)

该字符串表示图表上的趋势线标签文本。

setText(text: string): void;

参数

text

string

返回

void

setTextOrientation(textOrientation)

表示文本针对图表趋势线标签的方向角度。 对于垂直方向文本,该值应为 -90 到 90 的整数或整数 180。

setTextOrientation(textOrientation: number): void;

参数

textOrientation

number

返回

void

setTop(top)

表示从图表趋势线标签的上边缘到图表区顶部的距离(以磅为单位)。 null如果图表趋势线标签不可见,则值为 。

setTop(top: number): void;

参数

top

number

返回

void

setVerticalAlignment(verticalAlignment)

表示图表趋势线标签的垂直对齐方式。 有关详细信息,请参阅 ExcelScript.ChartTextVerticalAlignment。 仅当趋势线标签为 0 时 TextOrientation ,此属性才有效。

setVerticalAlignment(
            verticalAlignment: ChartTextVerticalAlignment
        ): void;

参数

返回

void