返回或设置一个对象中外部边框的线宽。如果对象中的外部边框包括一种以上的线宽,则返回 wdUndefined;否则返回 False 或 WdLineWidth 常量。可以设置为 True、False 或 WdLineWidth 常量。可读写。
WdLineWidth 可以是下列 WdLineWidth 常量之一: |
wdLineWidth025pt |
wdLineWidth050pt |
wdLineWidth075pt |
wdLineWidth100pt |
wdLineWidth150pt |
wdLineWidth225pt |
wdLineWidth300pt |
wdLineWidth450pt |
wdLineWidth600pt |
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