Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns an int representing the default tab width for this Document. The value that is returned is in twips. One twip = (1/20 pt) or ( 1/1440 in).

Signature
C#
C#
 public int DefaultTabWidth{ get; set; }
Signature
vb.net
vb.net
Public Property DefaultTabWidth() As Integer
Remarks

MS Word equivalent: Format menu > Tabs... > Default tab stops

Example
Code Block
csharp
csharp
titleC#

          //--- Return DefaultTabWidth
          int defaultTabWidth = oDocument.DefaultTabWidth;

          //--- Set DefaultTabWidth to 1 inch
          oDocument.DefaultTabWidth = 1440;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return DefaultTabWidth
          Dim defaultTabWidth As Integer = oDocument.DefaultTabWidth

          '--- Set DefaultTabWidth to 1 inch
          oDocument.DefaultTabWidth = 1440