![]() |
CNiValuePairs | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiValuepairs.h |
Overview
A CNiValuePairs object is a collection of value pairs on a CNiAxis or CNiAxis3D object.
- Use the CNiAxis::ValuePairs or CNiAxis3D::ValuePairs property to obtain the associated value pair collection.
- Use the Add function to create additional value pairs. Add returns a CNiValuePair object, which represents the new value pair.
- Use the Item function to access existing value pairs in the collection. This function can access value pairs by either name or index.
- Use the Remove function to remove existing value pairs from the collection. This function can access value pairs by either name or index.
- Use the RemoveAll function to remove all value pairs from the collection.
Use the properties listed below to control the appearance of value pairs.
- GridLines
- LabelType
- Location
- MajorTicks
Base Classes
Data Items
![]() |
short | Count | Returns the number of value pairs in the collection. |
![]() |
bool | GridLines | Specifies if grid lines are drawn at value pair locations. |
![]() |
ValuePairLabels | LabelType | Specifies the type of labels to draw for the value pairs. |
![]() |
ValuePairLocations | Location | Specifies if value pairs are placed on the axis by their value or by their index. |
![]() |
bool | MajorTicks | Specifies if major ticks are placed at the location of the value pairs. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiValuePairs( CWValuePairs_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWValuePairs_CI pointer. | |
![]() |
CNiValuePairs( const CNiValuePairs& source ) |
Copy constructor. |
Destructors
Functions
![]() |
CNiValuePair | Add() |
Adds a value pair to the collection and returns the new value pair. |
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
CNiValuePair | Returns the specified value pair from the collection. | |
![]() |
CNiValuePair | Item( long valuePairIndex ) |
Returns the specified value pair from the collection. |
![]() |
const CNiValuePairs & | Assignment operator. | |
![]() |
void | Removes the specified value pair from the collection. | |
![]() |
void | Remove( long valuePairIndex ) |
Removes the specified value pair from the collection. |
![]() |
void | Removes all value pairs from the collection. | |
![]() |
void | Swap( long element1, long element2 ) |
Swaps two value pair elements, altering their indices. |