Skip to content
本页内容

Borders (属性)

返回一个 Borders 对象,该对象代表当前用户界面中显示的关联 Range 对象的边框。只读。

返回值

Borders

示例

python
#此示例显示 B4 单元格边框在当前调色板中颜色的索引值是否为 xlColorIndexNone 
def test():
    print(Range("B4").DisplayFormat.Borders.ColorIndex == xlColorIndexNone)
python
#此示例显示第一张工作表中 D6 单元格边框的粗细
def test():
    print(Worksheets.Item(1).Range("D6").DisplayFormat.Borders.Weight)