XmlMappedRange.InsertIndent Method
Adds an indent to the XmlMappedRange control.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Sub InsertIndent ( _
InsertAmount As Integer _
)
void InsertIndent(
int InsertAmount
)
Parameters
InsertAmount
Type: System.Int32The 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
- 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.