ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / RasterImageryOptions Class / SetMaximumUniqueValues Method
The maximum number of unique values to display.
Version

SetMaximumUniqueValues Method
Sets the maximum number of unique values to display. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetMaximumUniqueValues( 
   int maximum
)

Parameters

maximum
The maximum number of unique values to display.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
The maximum number of values to display is set to 65,536 by default. This is the maximum number of values you can get with 16-bit data. Increasing this number allows you to work with datasets that have a greater bit depth without scaling them down to 16 bit; however, this increases computational effort and lowers performance.

The value supplied must be greater than or equal to 0. If a negative value is supplied it will be set to 0.

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also