Skip to content
本页内容

Border (属性)

返回一个 Border 对象,它代表对象的边框。

示例

python
#本示例将工作表 Sheet1 上第一个图表中的分类轴设置为绿色
def test():
    axis = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.Axes(xlCategory)
    axis.Border.Color = RGB(0, 255, 0)
python
#本示例将图表工作表 Chart1 中图表的数值轴设置为粗边框,并将其颜色设置为红色
def test():
    axis = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Axes(xlValue)
    axis.Border.Weight = xlThick
    axis.Border.ColorIndex  = 3