This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerResultOptions Interface > ILayerResultOptions.FormatValuesInResults Property (ArcObjects .NET 10.5 SDK) |
Indicates whether to format the values in results.
[Visual Basic .NET] Public Property FormatValuesInResults As Boolean
[C#] public bool FormatValuesInResults {get; set;}
[C++]
HRESULT get_FormatValuesInResults(
VARIANT_BOOL* Format
);
[C++]
HRESULT put_FormatValuesInResults(
VARIANT_BOOL Format
);
[C++]
Parameters Format [out, retval] Format is a parameter of type VARIANT_BOOL Format [in] Format is a parameter of type VARIANT_BOOL
FormatValuesInResults is only applied to Find and Identify functions. It is ignored by other query function such as QueryData, QueryFeatureData2, QueryHyperLinks etc. The default value for FormatValuesInResults is True � that means if it is not set explicitly, field formatting set in the source map document will be honored. For example, if the format for a field of type double is set to have thousand separator and 3 digits after decimal, the output will be a string �999,999.999�. When it is set to False, values will be returned in the source data type, for the same case, the returned value will be a double 999999.9999999.
This property is ignored by Identify and Find functions when querying a layer that does not implement IFeatureLayer interface (i.e. Raster layer)