|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAngleFormat
Provides access to members that format angles.
The members in the IAngleFormat interface define how the ValueToString method in the associated INumberFormat interface formats numbers.
The AngleFormat coclass also inherits the INumericFormat interface, so both these interface's properties determine how numbers are formatted.
If the AngleInDegrees property is not set the same as the DisplayDegrees property (both of these are Boolean [True/False] properties), a radian-to-degree conversion (or vice versa) will take place when the ValueToString method formats the value.
AngleInDegrees has to do with the ValueToString argument value. If the value is in degrees, set AngleInDegrees True. If AngleInDegrees is False, the argument is assumed to be a radian value.
DisplayDegrees has to do with the ValueToString result. If you want the resulting formatted number to be a degree value, set DisplayDegrees True. A degree symbol (°) is also appended to the resulting formatted number. If DisplayDegrees is False, the formatted number is a radian value and no degree symbol is appended.
The corresponding StringToValue method also uses these two properties. To obtain the numerical value that was used as a parameter to the ValueToString method, make sure the AngleInDegrees and DisplayDegrees properties are set are the same as they were when the ValueToString method was used. These settings may seem like they work in reverse when using the StringToValue method, but if you consider that StringToValue is intended to obtain numerical values from formatted strings, this makes more sense.
Use the IAngleFormat interface to format numbers that represent angles.
ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
Method Summary | |
---|---|
boolean |
isAngleInDegrees()
Indicates if the ValueToString argument is in degrees. |
boolean |
isDisplayDegrees()
Indicates if the formatted number is an angle in degrees. |
void |
setAngleInDegrees(boolean deg)
Indicates if the ValueToString argument is in degrees. |
void |
setDisplayDegrees(boolean deg)
Indicates if the formatted number is an angle in degrees. |
Method Detail |
---|
void setAngleInDegrees(boolean deg) throws IOException, AutomationException
The AngleInDegrees property sets or returns an option that tells the ValueToString method in the associated INumberFormat interface whether or not the ingoing parameter value is in degrees or radians.
AngleInDegrees has to do with the ValueToString argument value. If the value is in degrees, set AngleInDegrees True.
The settings for AngleInDegrees are:
Setting | Description |
False |
(Default) The ValueToString argument is assumed to be a radian value. |
True |
The ValueToString argument is assumed to be a degree value. |
deg
- The deg (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
boolean isAngleInDegrees() throws IOException, AutomationException
The AngleInDegrees property sets or returns an option that tells the ValueToString method in the associated INumberFormat interface whether or not the ingoing parameter value is in degrees or radians.
AngleInDegrees has to do with the ValueToString argument value. If the value is in degrees, set AngleInDegrees True.
The settings for AngleInDegrees are:
Setting | Description |
False | (Default) The ValueToString argument is assumed to be a radian value. |
True | The ValueToString argument is assumed to be a degree value. |
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
void setDisplayDegrees(boolean deg) throws IOException, AutomationException
The DisplayDegrees property sets or returns an option that tells the ValueToString method in the associated INumberFormat interface whether or not the resulting formatted expression is in degrees or radians.
DisplayDegrees has to do with the ValueToString result. If you want the resulting formatted number to be a degree value, set DisplayDegrees True. If DisplayDegrees is False, the formatted number is a radian value.
The settings for DisplayDegrees are:
Setting | Description |
False |
(Default) The resulting format is a radian value. A degree symbol is not appended. |
True |
The resulting format is a degree value. A degree symbol (°) is appended to the format. |
deg
- The deg (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
boolean isDisplayDegrees() throws IOException, AutomationException
The DisplayDegrees property sets or returns an option that tells the ValueToString method in the associated INumberFormat interface whether or not the resulting formatted expression is in degrees or radians.
DisplayDegrees has to do with the ValueToString result. If you want the resulting formatted number to be a degree value, set DisplayDegrees True. If DisplayDegrees is False, the formatted number is a radian value.
The settings for DisplayDegrees are:
Setting | Description |
False | (Default) The resulting format is a radian value. A degree symbol is not appended. |
True | The resulting format is a degree value. A degree symbol (°) is appended to the format. |
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |