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


IPercentageFormat.AdjustPercentage Property (ArcObjects .NET 10.6 SDK)
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(
  Boolean* adjust
);
[C++]

Parameters adjust [in]
adjust is a parameter of type bool adjust [out, retval]
adjust is a parameter of type 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 | 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