Compartilhar via


Axis.DisplayUnit Property

Returns or sets the unit label for the value axis.

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

Syntax

'Declaration
Property DisplayUnit As XlDisplayUnit
    Get
    Set
'Usage
Dim instance As Axis
Dim value As XlDisplayUnit

value = instance.DisplayUnit

instance.DisplayUnit = value
XlDisplayUnit DisplayUnit { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlDisplayUnit

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.

XlDisplayUnit can be one of these XlDisplayUnit constants:

xlHundredMillions

xlHundredThousands

xlMillions

xlTenThousands

xlThousands

xlHundreds

xlMillionMillions

xlTenMillions

xlThousandMillions

The unit label can also be one of the following constants:

xlCustom

xlNone

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.Excel Namespace