ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicRasterLayer Class / CanSetColorizer Method
Your custom colorizer that will be used to draw the raster layer.

In This Topic
    CanSetColorizer Method
    In This Topic
    Determines whether a colorizer is valid for the raster layer and can be updated. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public bool CanSetColorizer( 
       CIMRasterColorizer colorizer
    )
    Public Function CanSetColorizer( _
       ByVal colorizer As CIMRasterColorizer _
    ) As Boolean

    Parameters

    colorizer
    Your custom colorizer that will be used to draw the raster layer.

    Return Value

    A boolean indicates that the colorizer can be updated for the layer.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Certain colorizers are only appropriate for certain raster layers.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also