XmlMappedRange.InsertIndent Method (2007 System)

Adds an indent to the XmlMappedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

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

instance.InsertIndent(InsertAmount)
public void InsertIndent(
    int InsertAmount
)
public:
void InsertIndent(
    int InsertAmount
)
public function InsertIndent(
    InsertAmount : int
)

Parameters

  • InsertAmount
    Type: System.Int32

    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.

Examples

The following code example uses the InsertIndent method to set an indent level for an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub AddIndent()
    Me.CustomerLastNameCell.Value2 = "Smith" 
    Me.CustomerLastNameCell.InsertIndent(2)
End Sub
private void AddIndent()
{
    this.CustomerLastNameCell.Value2 = "Smith";
    this.CustomerLastNameCell.InsertIndent(2);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace