This documentation is archived and is not being maintained.

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)

'Usage
Dim axis1 As Axis

Dim returnValue As Double
returnValue = axis1.MajorUnit

Dim sampleValue As Double
axis1.MajorUnit = sampleValue

double MajorUnit {get; set;}
public double get_MajorUnit();
public void set_MajorUnit(double);
function get MajorUnit() : double;
function set MajorUnit(double);

Setting this property sets the MajorUnitIsAuto property to False.

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: