ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping.Voxel Namespace / VoxelVariableProfile Class / Statistics Property
Example

In This Topic
    Statistics Property (VoxelVariableProfile)
    In This Topic
    Gets the variable statistics.
    Syntax
    Public ReadOnly Property Statistics As VoxelVariableStatistics
    public VoxelVariableStatistics Statistics {get;}
    Example
    Access Stats and Color Range for a Stretch Renderer
    {
      //Get the variable profile on which to access the data
      var variable = voxelLayer.SelectedVariableProfile;
      //or use ...voxelLayer.GetVariableProfiles()
    
      //Data range
      var min = variable.Statistics.MinimumValue;
      var max = variable.Statistics.MaximumValue;
    
      //Color range (Continuous only)
      double color_min, color_max;
      if (variable.DataType == VoxelVariableDataType.Continuous)
      {
        var renderer = variable.Renderer as CIMVoxelStretchRenderer;
        color_min = renderer.ColorRangeMin;
        color_max = renderer.ColorRangeMax;
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also