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(
  VARIANT_BOOL Show
);
[C++]

Parameters

Show [out, retval]   Show is a parameter of type VARIANT_BOOL Show [in]   Show is a parameter of type VARIANT_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 | IScientificNumberFormat Interface | PercentageFormat Class | INumberFormat Interface | INumericFormat Interface | FractionFormat Class | IPercentageFormat Interface | ILatLonFormat Interface | ILatLonFormat2 Interface | LatLonFormat Class | ICustomNumberFormat Interface | RateFormat Class | NumericFormat Class | ScientificFormat Class | IRateFormat Interface | AngleFormat Class | IFractionFormat Interface | CurrencyFormat Class | CustomNumberFormat Class | IAngleFormat Interface