NativeExcel for .Net Developer's Reference

IRange.IndentLevel Property

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

[Visual Basic]
PropertyIndentLevelAsInteger
[C#]
intIndentLevel{get;set;}
[C++]
__propertyintget_IndentLevel();
__propertyvoidset_IndentLevel(int);
[JScript]
functiongetIndentLevel():int
functionsetIndentLevel(int);

Property Value

Can be an integer value from 0 to 15. Default value is 0.

Example

This example sets the indent level for A1:F5 range.

[C#]
 book.Worksheets[1].Range["A1:F5"].IndentLevel = 1;  
[VisualBasic]
 book.Worksheets(1).Range("A1:F5").IndentLevel = 1  
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:F5"]->IndentLevel = 1;  

See Also

IRange Interface | NativeExcel Namespace