This documentation is archived and is not being maintained.

Range.IndentLevel Property 

Returns or sets the indent level for the cell or range.

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

Dim range1 As Range

Dim returnValue As Object
returnValue = range1.IndentLevel

Dim sampleValue As Object
range1.IndentLevel = sampleValue

object IndentLevel {get; set;}
public System.Object get_IndentLevel();
public void set_IndentLevel(System.Object);
function get IndentLevel() : Object;
function set IndentLevel(Object);

The indent level can be an integer from 0 to 15.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms