ArcObjects Library Reference  (System)    

IAngleFormat.DisplayDegrees Property

Indicates if the formatted number is an angle in degrees.

[Visual Basic 6.0]
Property DisplayDegrees As Boolean
[Visual Basic .NET]
Public Property DisplayDegrees As Boolean
[C#]
public bool DisplayDegrees {get; set;}
[Java]
public boolean isDisplayDegrees()
throws
    IOException,
    AutomationException
[Java]
public void setDisplayDegrees(
boolean DisplayDegrees
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_DisplayDegrees(
  VARIANT_BOOL* deg
);
[C++]
HRESULT put_DisplayDegrees(
  VARIANT_BOOL deg

);

[C++]

Parameters

deg [out, retval]

  deg is a parameter of type VARIANT_BOOL

deg [in]

  deg is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

See Also

IAngleFormat Interface | IFractionFormat Interface | AngleFormat Class | IAngleFormat Interface | IPercentageFormat Interface | ICustomNumberFormat Interface | CurrencyFormat Class | LatLonFormat Class | FractionFormat Class | IRateFormat Interface | RateFormat Class | ILatLonFormat2 Interface | NumericFormat Class | CustomNumberFormat Class | INumericFormat Interface | PercentageFormat Class | IScientificNumberFormat Interface | ILatLonFormat Interface | INumberFormat Interface | ScientificFormat Class

Example

AngleFormat Example