ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMVoxelStretchRenderer Class
Members Example

In This Topic
    CIMVoxelStretchRenderer Class
    In This Topic
    Represents a stretch renderer.
    Object Model
    CIMVoxelStretchRenderer ClassCIMVoxelStretchRenderer ClassCIMColorRamp ClassCIMVoxelStretchRenderer ClassCIMNumberFormat Class
    Syntax
    Example
    Get the Variable Renderer
    //var voxelLayer = ... ;
    //Must be on the QueuedTask.Run()
    
    var variable = voxelLayer.GetVariableProfiles().First();
    var renderer = variable.Renderer;
    if (variable.DataType == VoxelVariableDataType.Continuous)
    {
        //Renderer will be stretch
        var stretchRenderer = renderer as CIMVoxelStretchRenderer;
        //access the renderer
    
    }
    else //VoxelVariableDataType.Discrete
    {
        //Renderer will be unique value
        var uvr = renderer as CIMVoxelUniqueValueRenderer;
        //access the renderer
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CIM.CIMObject
          ArcGIS.Core.CIM.CIMVoxelRenderer
             ArcGIS.Core.CIM.CIMVoxelStretchRenderer

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also