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


IIntervalRange2.Default Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > II > IIntervalRange2 Interface > IIntervalRange2.Default Property
ArcGIS Developer Help

IIntervalRange2.Default Property

The Default Range for the data.

[Visual Basic .NET]
Public Function get_Default ( _
    ByVal values As Object, _
    ByVal frequencies As Object _
) As Double
[C#]
public double get_Default (
    object values,
    object frequencies
);
[C++]
HRESULT get_Default(
  VARIANT values,
  VARIANT frequencies,
  System.Double* range
);
[C++]
Parameters
values 

values is a parameter of type VARIANT frequencies
frequencies is a parameter of type VARIANT range [out, retval]
range is a parameter of type double*

Product Availability

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

Description

Default is the default interval from a DefinedInterval classification CoClass. Default takes two safe arrays that must have the same number of elements and an index of zero for their first element. The first array is the numeric data values, defined as an array of double. This array must be sorted in increasing value order. The second array represents the frequency of occurrence of the values, that is, an integer count of the number of times a value occurs.

For example, if the two arrays were called DataValues and DataFrequency, the lowest value would be stored in DataValue(0), and the number of times this value occurred would be stored in DataFrequency(0).

You could populate these arrays in code yourself, but if the data is available through the attribute field of a table, you can utilize the TableHistogram object to gather the data values and frequencies for you.

Use this property as an alternative to calling IClassify.SetHistogramData and then calling IIntervalRange.Default.

See Also

IIntervalRange2 Interface