Share via


PivotField.LayoutForm Property

Returns or sets the way the specified PivotTable items appear — in table format or in outline format. Read/write XlLayoutFormType.

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

Syntax

'Declaration
Property LayoutForm As XlLayoutFormType
    Get
    Set
'Usage
Dim instance As PivotField
Dim value As XlLayoutFormType

value = instance.LayoutForm

instance.LayoutForm = value
XlLayoutFormType LayoutForm { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlLayoutFormType

Remarks

You can set this property for any PivotTable field; however, the formatting appears only if the specified field is a row field other than the innermost (lowest-level row field. For non-OLAP data sources, the value of this property doesn’t change when the field is rearranged or when it is added to or removed from the PivotTable report.

See Also

Reference

PivotField Interface

PivotField Members

Microsoft.Office.Interop.Excel Namespace