![]() |
CNiTicks | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiTicks.h |
Overview
CNiTicks encapsulates the interface to the Ticks property of a CNiAxis object, which allows you to modify the appearance and behavior of the tick marks on an axis.
Note: To specify a date/time value, you must convert your date or time value to a double. A date is implemented as a floating-point value with the integer part of the number measuring days from midnight, 30 December 1899, and the fractional part representing the time of day. The absolute value of the fractional part of the number represents the time as a fraction of a day. Thus, 1 second equals 1 / 24 hours / 60 minutes, which is 1/86400 or approximately 1.157407e-5. So, midnight, 31 December 1899, is represented by 1.0. Similarly, 6 AM, 1 January 1900, is represented by 2.25, and midnight, 29 December 1899, is -1.0. However, 6 AM, 29 December 1899, is -1.25.
Base Classes
Data Items
![]() |
bool | Above | Specifies if ticks are drawn above the object. |
![]() |
bool | AutoDivisions | Specifies if divisions are automatically calculated. |
![]() |
bool | Below | Specifies if ticks are drawn below the object. |
![]() |
bool | Inside | Specifies if tick marks are drawn on the inside of the axis. |
![]() |
bool | Left | Specifies if tick marks are drawn to the left of the object. |
![]() |
double | MajorDivisions | Specifies the number of major divisions. |
![]() |
bool | MajorGrid | Specifies if major grid lines are drawn. |
![]() |
CNiColor | MajorGridColor | Specifies the color of major grid lines. |
![]() |
CNiColor | MajorTickColor | Specifies the color of major grid ticks. |
![]() |
bool | MajorTicks | Specifies if major grid ticks are drawn. |
![]() |
double | MajorUnitsBase | Specifies the base number for calculating ticks. |
![]() |
double | MajorUnitsInterval | Specifies the number of units between major divisions. |
![]() |
double | MinorDivisions | Specifies the number of minor divisions for each major division. |
![]() |
bool | MinorGrid | Specifies if minor grid lines are drawn. |
![]() |
CNiColor | MinorGridColor | Specifies the color of minor grid lines. |
![]() |
CNiColor | MinorTickColor | Specifies the color of minor grid ticks. |
![]() |
bool | MinorTicks | Specifies if minor grid ticks are drawn. |
![]() |
double | MinorUnitsInterval | Specifies the number of units between minor divisions. |
![]() |
bool | Outside | Specifies if tick marks are drawn on the outside of the axis |
![]() |
bool | Right | Specifies if tick marks are drawn to the right of the object. |
Constructors
![]() |
CNiTicks() |
Default constructor. | |
![]() |
CNiTicks( CWTicks_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWTicks_CI pointer. | |
![]() |
CNiTicks( const CNiTicks& source ) |
Copy constructor. |
Destructors
Functions
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
const CNiTicks & | Assignment operator. |
Example
// Changes the number of major divisions on the x axis of a graph // control.
CNiGraph graph; CNiTicks ticks = graph.Axes.Item("XAxis").Ticks; ticks.MajorDivisions = 20;