This documentation is archived and is not being maintained.

Range.AddIndent Property 

Determines if text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim range1 As Range

Dim returnValue As Object
returnValue = range1.AddIndent

Dim sampleValue As Object
range1.AddIndent = sampleValue

property Object^ AddIndent{
	Object^ get();
	Void set(Object^);
}
public System.Object get_AddIndent();
public void set_AddIndent(System.Object);
function get AddIndent() : Object;
function set AddIndent(Object);

This property returns True if text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.

To set text alignment to equal distribution, you can set the VerticalAlignment property to xlVAlignDistributed when the value of the Orientation property is xlVertical, and you can set the HorizontalAlignment property to xlHAlignDistributed when the value of the Orientation property is xlHorizontal.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: