DocumentBase.DefaultTabStop 属性

定义

获取或设置文档中默认制表位之间的间隔(以磅为单位)。

public float DefaultTabStop { get; set; }

属性值

Single

文档中默认制表位之间的间隔(以磅为单位)。

示例

下面的代码示例将默认制表位设置为1英寸。 若要使用此示例,请在 ThisDocument 文档级项目的类中运行它。

private void DocumentDefaultTabStop()
{
    this.DefaultTabStop = Application.InchesToPoints(1);
}
Private Sub DocumentDefaultTabStop()
    Me.DefaultTabStop = Application.InchesToPoints(1)
End Sub

适用于