Freigeben über


XmlMappedRange.InsertIndent(Int32) Method

Definition

Adds an indent to the XmlMappedRange control.

public:
 void InsertIndent(int InsertAmount);
public void InsertIndent (int InsertAmount);
abstract member InsertIndent : int -> unit
Public Sub InsertIndent (InsertAmount As Integer)

Parameters

InsertAmount
Int32

The amount to be added to the current indent.

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 void AddIndent()
{
    this.CustomerLastNameCell.Value2 = "Smith";
    this.CustomerLastNameCell.InsertIndent(2);
}
Private Sub AddIndent()
    Me.CustomerLastNameCell.Value2 = "Smith"
    Me.CustomerLastNameCell.InsertIndent(2)
End Sub

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.

Applies to