This document is archived and information here might be outdated.  Recommended version.


INumericFormat.ShowPlusSign Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

INumericFormat.ShowPlusSign Property

Indicates if formatted numbers contain a plus sign for positive numbers.

[Visual Basic .NET]
Public Property ShowPlusSign As Boolean
[C#]
public bool ShowPlusSign {get; set;}
[C++]
HRESULT get_ShowPlusSign(
  VARIANT_BOOL Show
);
[C++]
HRESULT put_ShowPlusSign(
  Boolean* Show
);
[C++]

Parameters Show [in]
Show is a parameter of type bool Show [out, retval]
Show is a parameter of type bool*

Product Availability

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

Description

The ShowPlusSign property sets or returns an indicator that tells whether or not a plus sign symbol (+) is to be prefixed to positive numbers when the ValueToString method in the associated INumberFormat interface formats numbers.

The settings for ShowPlusSign are:

Setting

Description

False

(Default) Positive numbers and zero values are formatted without a plus sign. Negative values are formatted with a minus (-) sign.

True

Positive numbers are formatted with a plus (+) sign. Zero values are formatted without a plus sign. Negative numbers are formatted with a minus (-) sign.

 

Remarks

Using ShowPlusSign can be useful in conjunction with IFormattedGridLabel, where a user might not know if the number is above or below the Equator, or east or west of the Central Meridian.

Also see the ShowDirections property in ILatLonFormat.

See Also

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

.NET Snippets

Decimal Degree Angle Radian Example