Expand Minimize
This topic has not yet been rated - Rate this topic

NamedRange.IndentLevel Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the indent level for the NamedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Object IndentLevel { get; set; }

Property Value

Type: System.Object
The indent level for the NamedRange control.

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 exception to be thrown.

The following code example creates a NamedRange and then uses the IIndentLevel property to set the indent level of the NamedRange to 3.

This example is for a document-level customization.

Microsoft.Office.Tools.Excel.NamedRange indentRange;
private void SetIndentLevel()
    indentRange = this.Controls.AddNamedRange(
        this.Range["B4"], "indentRange");
    this.indentRange.Value2 = "Smith";
    this.indentRange.IndentLevel = 3;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.