Share via


Slicer.Caption Property

Gets or sets the caption of the specified slicer.

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

Syntax

'Declaration
Property Caption As String
    Get
    Set
'Usage
Dim instance As Slicer
Dim value As String

value = instance.Caption

instance.Caption = value
string Caption { get; set; }

Property Value

Type: System.String
The caption of the specified slicer.

Remarks

Read/write.

The value specified for the Caption property is displayed in the header of the slicer. If the Caption property is not specified, Excel uses the value of the Caption property of the underlying PivotField object.

See Also

Reference

Slicer Interface

Slicer Members

Microsoft.Office.Interop.Excel Namespace