Share via


Font.Name Property

Returns or sets the name of the object.

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

Syntax

'Declaration
Property Name As Object
    Get
    Set
'Usage
Dim instance As Font
Dim value As Object

value = instance.Name

instance.Name = value
Object Name { get; set; }

Property Value

Type: System.Object

Remarks

The following table shows example values of the Name property and related properties given an OLAP data source with the unique name "[Europe].[France].[Paris]" and a non-OLAP data source with the item name "Paris".

Property

Value (OLAP data source)

Value (non-OLAP data source)

Caption

Paris

Paris

Name

[Europe].[France].[Paris] (read-only)

Paris

SourceName

[Europe].[France].[Paris] (read-only)

(Same as SQL property value, read-only)

Value

[Europe].[France].[Paris] (read-only)

Paris

When specifying an index into the PivotItems collection, you can use the syntax shown in the following table.

Syntax (OLAP data source)

Syntax (non-OLAP data source)

expression.PivotItems("[Europe].[France].[Paris]")

expression.PivotItems("Paris")

See Also

Reference

Font Interface

Font Members

Microsoft.Office.Interop.Excel Namespace