Page tree

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}{signature:
}
Signature
vb.net
vb.net
Public Property DefaultTabWidth() As Integer
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

Format

menu

>

Tabs...

>

Default

tab

stops {remarks} {example}{code:csharp|title=C#}

stops

Example
Code Block
csharp
csharp
titleC#


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

          //--- Set DefaultTabWidth to 1 inch
          oDocument.DefaultTabWidth = 1440;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


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

          '--- Set DefaultTabWidth to 1 inch
          oDocument.DefaultTabWidth = 1440
        
{code} {example}