Partager via


Range.InsertIndent Method

Adds an indent to the specified range.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub InsertIndent ( _
    InsertAmount As Integer _
)
'Usage
Dim instance As Range
Dim InsertAmount As Integer

instance.InsertIndent(InsertAmount)
void InsertIndent(
    int InsertAmount
)

Parameters

  • InsertAmount
    Type: System.Int32

    Required Integer. The amount to be added to the current indent.

Remarks

Using this method to set the indent level to a number less than 0 (zero) or greater than 15 causes an error.

Use theIndentLevel property to return the indent level for a range.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace