Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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).

 stops

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

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

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

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

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

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns an {{int}} representing the default tab width for this [Document|Document]. The value that is returned is in twips. One twip = \(1/20 pt\) or \( 1/1440 in\).{excerpt}
{signature:C#}
 public int DefaultTabWidth{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property DefaultTabWidth() As Integer
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Format menu > Tabs... > Default tab
stops
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle