Adds an indent to the NamedRange control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Using this method to set the indent level to a number less than 0 (zero) or greater than 15 causes an exception to be thrown.
Use the IndentLevel property to return the indent level for a range.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.