CalloutFormat.Border 属性 (Publisher)

返回或设置一个 MsoTriState 常量,该常量指示指定标注中的文本是否由边框包围。 读/写。

语法

表达式边境

表达 一个代表 CalloutFormat 对象的变量。

返回值

MsoTriState

备注

Border 属性值可以是 Microsoft Office 类型库中声明的 MsoTriState 常量之一。

示例

以下示例将一个椭圆添加到当前出版物,并添加一个指向该椭圆的标注。 标注文字具有边框,但没有将文字和标注线条分开的垂直强调线。

With ActiveDocument.Pages(1).Shapes 
 ' Add an oval. 
 .AddShape Type:=msoShapeOval, _ 
 Left:=180, Top:=200, Width:=280, Height:=130 
 
 ' Add a callout. 
 With .AddCallout(Type:=msoCalloutTwo, _ 
 Left:=420, Top:=170, Width:=170, Height:=40) 
 
 ' Add text to the callout. 
 .TextFrame.TextRange.Text = "This is an oval" 
 
 ' Add an accent bar to the callout. 
 With .Callout 
 .Accent = msoFalse 
 .Border = msoTrue 
 End With 
 End With 
End With 

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。