Share via


Axis.HasDisplayUnitLabel Property

True if the label specified by the DisplayUnit or DisplayUnitCustom property is displayed on the specified axis. The default value is True. Read/write Boolean.

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

Syntax

'Declaration
Property HasDisplayUnitLabel As Boolean
    Get
    Set
'Usage
Dim instance As Axis
Dim value As Boolean

value = instance.HasDisplayUnitLabel

instance.HasDisplayUnitLabel = value
bool HasDisplayUnitLabel { get; set; }

Property Value

Type: System.Boolean

Examples

This example sets the units on the value axis of the first chart in the active document to increments of 500 but keeps the unit label hidden.

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

    If .HasChart Then

        With .Chart.Axes(xlValue)

            .DisplayUnit = xlCustom

            .DisplayUnitCustom = 500

            .AxisTitle.Caption = "Rebate Amounts"

            .HasDisplayUnitLabel= False

        End With

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace