TabStops.Add(Single, Object, Object) 方法

定义

返回一个 TabStop 对象,该对象表示添加到文档中的自定义制表位。

public Microsoft.Office.Interop.Word.TabStop Add (float Position, ref object Alignment, ref object Leader);
abstract member Add : single * obj * obj -> Microsoft.Office.Interop.Word.TabStop
Public Function Add (Position As Single, Optional ByRef Alignment As Object, Optional ByRef Leader As Object) As TabStop

参数

Position
Single

必需 单一。 制表位与页面左边距的相对位置(以磅为单位)。

Alignment
Object

可选 对象。 制表位的对齐方式。 可以是以下 WdTabAlignment 常量之一: wdAlignTabBarwdAlignTabCenterwdAlignTabDecimalwdAlignTabLeftwdAlignTabListwdAlignTabRight。 如果省略此参数,则使用 wdAlignTabLeft

Leader
Object

可选 对象。 制表位的前导符类型。 可以是以下 WdTabLeader 常量之一: wdTabLeaderDasheswdTabLeaderDotswdTabLeaderHeavywdTabLeaderLineswdTabLeaderMiddleDotwdTabLeaderSpaces。 如果省略本参数,则使用 wdTabLeaderSpaces

返回

适用于