Table of contents
TOC
折叠目录
展开目录

ChartBorder.Weight 属性 (PowerPoint)ChartBorder.Weight Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置边框的粗细。读/写XlBorderWeightReturns or sets the weight of the border. Read/write XlBorderWeight.

语法Syntax

表达式重量expression. Weight

表达式_一个表示ChartBorder对象的变量。_expression A variable that represents a ChartBorder object.

示例Example

请注意 尽管下面的代码适用于 Microsoft Word 中,您可以随时修改将其应用到 PowerPoint。Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

以下示例将活动文档中第一个图表的数值轴的边框粗细设置为中等。The following example sets the border weight for the value axis of the first chart in the active document to medium.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.Axes(xlValue).Border.Weight = xlMedium

    End If

End With

另请参阅See also

概念Concepts

ChartBorder 对象ChartBorder Object

© 2018 Microsoft