Share via


Axis.DisplayUnitCustom Property

If the value of the DisplayUnit property is xlCustom, the DisplayUnitCustom property returns or sets the value of the displayed units. The value must be from 0 through 10E307. Read/write Double.

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

Syntax

'Declaration
Property DisplayUnitCustom As Double
    Get
    Set
'Usage
Dim instance As Axis
Dim value As Double

value = instance.DisplayUnitCustom

instance.DisplayUnitCustom = value
double DisplayUnitCustom { get; set; }

Property Value

Type: System.Double

Remarks

Using unit labels when charting large values makes your tick mark labels easier to read. For example, if you label your value axis in units of hundreds, thousands, or millions, you can use smaller numeric values at the tick marks on the axis.

Examples

This example sets the units displayed on the value axis of the first chart in the active document to increments of 500.

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

    If .HasChart Then

        With .Chart.Axes(xlValue)

            .DisplayUnit = xlCustom

            .DisplayUnitCustom= 500

            .HasTitle = True

            .AxisTitle.Caption = "Rebate Amounts"

        End With

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace