Indicates if formatted numbers contain a plus sign for positive numbers.
[Visual Basic 6.0] Property ShowPlusSign As Boolean
[Visual Basic .NET] Public Property ShowPlusSign As Boolean
[C#] public bool ShowPlusSign {get; set;}
[Java] public boolean isShowPlusSign() throws IOException, AutomationException
[Java] public void setShowPlusSign( boolean ShowPlusSign ) throws IOException, AutomationException
[C++]
HRESULT get_ShowPlusSign(
VARIANT_BOOL* Show
);
[C++] HRESULT put_ShowPlusSign( VARIANT_BOOL Show);
Parameters
Show [out, retval]
Show is a parameter of type VARIANT_BOOL
Show [in]
Show is a parameter of type VARIANT_BOOL
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. |
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.
INumericFormat 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