Skip to content
本页内容

Weight (属性)

返回或设置一个 XlBorderWeight值,它代表边框的粗细。

示例

python
#本示例对 Sheet1 上椭圆一的边框粗细进行设置
def test():
    Application.Worksheets.Item("Sheet1").Ovals(1).Border.Weight = xlMedium
python
#本示例显示 I1 单元格左边缘边框的粗细是否为 xlThin 
def test():
    print(Range("I1").Borders.Item(xlEdgeLeft).Weight == xlThin)