ArcObjects Library Reference (System)  

IPercentageFormat.AdjustPercentage Property

Indicates if ValueToString agument is treated as a fraction or a percentage.

[Visual Basic .NET]
Public Property AdjustPercentage As Boolean
[C#]
public bool AdjustPercentage {get; set;}
[C++]
HRESULT get_AdjustPercentage(
  VARIANT_BOOL* adjust
);
[C++]
HRESULT put_AdjustPercentage(
  VARIANT_BOOL adjust
);
[C++]

Parameters

adjust [out, retval]   adjust is a parameter of type VARIANT_BOOL adjust [in]   adjust is a parameter of type VARIANT_BOOL

Product Availability

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

Description

The AdjustPercentage property allows the conversion to and from fractions and sets or returns an indicator that tells how the ValueToString method's argument is treated in the associated INumberFormat interface.

The settings for AdjustPercentage are:

Setting Description

False

(Default) The arguments to the ValueToString and StrinToValue methods are assumed to be in percentage format already. For ValueToString, a percentage symbol (%) is appended to the value, and for StringToValue, this is removed.

True

The argument to the ValueToString method is treated as a fraction. The value is multiplied by 100 and a percent symbol (%) is appended. For StringToValue, the output is converted to a fraction (from a percentage)it is divided by 100, and any percentage symbol is removed.

See Also

IPercentageFormat 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