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 | ILatLonFormat2 Interface | RateFormat Class | IFractionFormat Interface | ICustomNumberFormat Interface | IAngleFormat Interface | ScientificFormat Class | INumberFormat Interface | AngleFormat Class | LatLonFormat Class | INumericFormat Interface | PercentageFormat Class | CustomNumberFormat Class | IRateFormat Interface | IPercentageFormat Interface | NumericFormat Class | CurrencyFormat Class | ILatLonFormat Interface | IScientificNumberFormat Interface | FractionFormat Class

.NET Snippets

Decimal Degree Angle Radian Example