Partager via


Axis.MajorUnit Property

Returns or sets the major units for the value axis.

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

Syntax

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

value = instance.MajorUnit

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

Property Value

Type: System.Double

Remarks

Setting this property sets the MajorUnitIsAuto property to False.

Use the TickMarkSpacing property to set tick mark spacing on the category axis.

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.Excel Namespace