[VB] | Public Sub setFormatCondition(condition As String [, operand As Double ]) |
[C#] | public void setFormatCondition(string condition [, double operand ]); |
ChartDirector 5.1 (.NET Edition)
Axis.setFormatCondition
Usage
[VB] | Public Sub setFormatCondition(condition As String [, operand As Double ]) |
[C#] | public void setFormatCondition(string condition [, double operand ]); |
Description
Condition | Description |
---|---|
"align" | Test if all the ticks are aligned to the operand. Use 3600 for testing hourly alignment, 86400 (1 day = 86400) for daily alignment, 30 * 86400 for monthly alignment and 360 * 86400 for yearly alignment. (Note: The values for monthly and yearly alignments are special values recognized by ChartDirector. They works even if a month or year is not exactly 30 or 360 days.) |
">" | Test if the maximum absolute value of the ticks are larger than the operand. This is useful when one needs to apply different formats to large numbers (eg. use scientific formats if the axis range exceed certain values). |
">=" | Test if the maximum absolute value of the ticks is larger than or equal to the operand. |
"<" | Test if the maximum absolute value of the ticks is less than the operand. |
"<=" | Test if the maximum absolute value of the ticks is less than or equal to the operand. |
"==" | Test if the maximum absolute value of the ticks is equal to the operand. |
"=" | Same as "==" above. |
"!=" | Test if the maximum absolute value of the ticks is not equal to the operand. |
"<>" | Same as "!=" above. |
"else" | This condition is true if and only if the previous condition is false. |
"true" | This condition is always true. It is useful as a "catch all" condition. |
"false" | This condition is always false. |
Arguments
Argument | Default | Description |
---|---|---|
condition | (Mandatory) | The type of condition to test. Must be one of the condition types in the above table. This text string is case sensitive. |
operand | 0 | The operand for condition types that need an operand. |
Return Value