Share via


Workbook.DefaultSlicerStyle Property

Gets or sets the style from the TableStyles object that is used as the default style for slicers. This property can be used only in Excel 2010 projects.

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

Syntax

'Declaration
Property DefaultSlicerStyle As Object
    Get
    Set
Object DefaultSlicerStyle { get; set; }

Property Value

Type: System.Object
An object that represents the style from the TableStyles object that is used as the default style for slicers.

Exceptions

Exception Condition
MissingMemberException

This property is used in an Excel 2007 project.

Remarks

This property appears in IntelliSense in Excel 2007 projects that target the .NET Framework 4. However, this property cannot be used in Excel 2007 projects.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace