Share via


Diagram.AutoLayout Property

Returns or sets a constant which determines the automatic positioning of the nodes and connectors in a diagram.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property AutoLayout As MsoTriState
    Get
    Set
'Usage
Dim instance As Diagram
Dim value As MsoTriState

value = instance.AutoLayout

instance.AutoLayout = value
MsoTriState AutoLayout { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState

Remarks

Setting AutoLayout to msoFalse disables automatic formatting for the diagram. Setting AutoLayout to msoTrue enables automatic formatting for the diagram.

The following MsoTriState constants to not apply to this property: msoCTrue, msoTriStateMixed, msoTriStateToggle.

See Also

Reference

Diagram Interface

Diagram Members

Microsoft.Office.Interop.Excel Namespace