全部显示

OutsideLineWidth 属性

       

返回或设置一个对象中外部边框的线宽。如果对象中的外部边框包括一种以上的线宽,则返回 wdUndefined;否则返回 FalseWdLineWidth 常量。可以设置为 TrueFalseWdLineWidth 常量。可读写。

expression.OutsideLineWidth

expression   必需。该表达式返回一个 Borders 对象。

示例

本示例为活动文档的第一个表格添加波浪形边框。

If ActiveDocument.Tables.Count >= 1 Then
    With ActiveDocument.Tables(1).Borders
        .OutsideLineStyle = wdLineStyleSingleWavy
        .OutsideLineWidth = wdLineWidth075pt
    End With
End If

本示例为活动文档的前 4 段四周添加点线型边框。

Set myDoc = ActiveDocument
Set myRange = myDoc.Range(Start:=myDoc.Paragraphs(1).Range.Start, _
    End:=myDoc.Paragraphs(4).Range.End)
myRange.Borders.OutsideLineStyle = wdLineStyleDot
myRange.Borders.OutsideLineWidth = wdLineWidth075pt