The alignment option applied to the ValueToString method.
[Visual Basic 6.0] Property AlignmentOption As esriNumericAlignmentEnum
[Visual Basic .NET] Public Property AlignmentOption As esriNumericAlignmentEnum
[C#] public esriNumericAlignmentEnum AlignmentOption {get; set;}
[Java] public esriNumericAlignmentEnum getAlignmentOption() throws IOException, AutomationException
[Java] public void setAlignmentOption( esriNumericAlignmentEnum psriNumericAlignmentEnum ) throws IOException, AutomationException
[C++] HRESULT get_AlignmentOption( esriNumericAlignmentEnum* option );
[C++] HRESULT put_AlignmentOption( esriNumericAlignmentEnum option);
Parameters
option [out, retval]
option is a parameter of type esriNumericAlignmentEnum
option [in]
option is a parameter of type esriNumericAlignmentEnum
The AlignmentOption property sets or returns an option that tells the ValueToString method in the associated INumberFormat interface how to align formatted numbers. For example, the value “0.34”, formatted as a string with an AlignmentWidth of 5, is returned as “0.34” with an AlignmentOption of esriAlignRight and “0.34” with an AlignmentOption of esriAlignLeft.
The settings for AlignmentOption are:
| Setting | Description |
|
esriAlignRight |
(Default) Numbers are aligned to the right. If the AlignmentWidth property is wider than the resulting formatted number, spaces are padded at the left to make the output AlignmentWidth characters wide. If the formatted number is wider than AlignmentWidth, the number is not truncated (the same as it would be if AlignmentOption were set to esriAlignLeft). |
|
esriAlignLeft |
Numbers are aligned to the left. No spaces are padded either at the left or right. If AlignmentOption is set to esriAlignLeft, the AlignmentWidth property is ignored. |
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