Gets or sets the hanging indent of a numbered list.

Syntax

public int HangingIndent { get; set; }
Public Property HangingIndent() As Integer

Examples

The following example sets the 'HangingIndent' property to a user defined value of twips. Here, it is set to '370' - the default value is '360'.

TXTextControl.ListFormat lf = new TXTextControl.ListFormat();
lf.Type = TXTextControl.ListType.Numbered;
lf.FirstNumber = 5;
lf.FontName = "Calibri";
lf.BulletCharacter = '>';
lf.BulletSize = 12;
lf.FormatCharacter = TXTextControl.ListFormatCharacter.Tab;
lf.HangingIndent = 370;

textControl1.Selection.ListFormat = lf;
Dim lf As TXTextControl.ListFormat = New TXTextControl.ListFormat()
lf.Type = TXTextControl.ListType.Numbered
lf.FirstNumber = 5
lf.FontName = "Calibri"
lf.BulletCharacter = ">"
lf.BulletSize = 12
lf.FormatCharacter = TXTextControl.ListFormatCharacter.Tab
lf.HangingIndent = 370

TextControl1.Selection.ListFormat = lf

Remarks

The property's default value is 360 twips.

The property returns 0 when the text selection contains multiple paragraphs with mixed hanging indents or when the text selection does not contain a bulleted or a numbered list. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.