Share via


Axis.DisplayUnitLabel Property

Returns the [DisplayUnitLabel#SameCHM] object for the specified axis. Returns a null reference (Nothing in Visual Basic) if the HasDisplayUnitLabel property is set to False. Read-only.

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

Syntax

'Declaration
ReadOnly Property DisplayUnitLabel As DisplayUnitLabel
    Get
'Usage
Dim instance As Axis
Dim value As DisplayUnitLabel

value = instance.DisplayUnitLabel
DisplayUnitLabel DisplayUnitLabel { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.DisplayUnitLabel

Examples

This example sets the label caption to "Millions" for the value axis of the first chart in the active document, and then it turns off automatic font scaling.

With ActivePresentation.Slides(1).Shapes(1)

    If .HasChart Then

        With .Chart.Axes(xlValue).DisplayUnitLabel.Caption = "Millions"

            .AutoScaleFont = False

        End With

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace