ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping.Events Namespace / MapMemberEventHint Enumeration
Example Example

In This Topic
    MapMemberEventHint Enumeration
    In This Topic
    Specifies the MapMember properties that are modified in the event.
    Syntax
    Members
    MemberDescription
    Any One or more properties that are not part of this enum are changed.
    Brightness MapMember's Brightness property is changed.
    ConnectionStatus MapMember's ConnectionStatus property is changed.
    Contrast MapMember's Contrast property is changed.
    DataSource MapMember's DataSource property is changed.
    DefinitionQuery MapMember's DefinitionQuery property is changed.
    DisplayFilter MapMember's display filter property is changed.
    Editability MapMember's IsEditable property is changed.
    Expansion MapMember is Expanded/Collapsed on the TOC.
    Extrusion MapMember's Extrusion property is changed.
    FeatureReduction A layer's FeatureReduction property has changed.
    LabelClasses MapMember's LabelClasses property is changed.
    LabelVisibility MapMember's IsLabelVisible property is changed.
    MaxDistance MapMember's MaxDistance property is changed.
    MaxScale MapMember's MaxScale property is changed.
    MinDistance MapMember's MinDistance property is changed.
    MinScale MapMember's MinScale property is changed.
    Name MapMember's Name property is changed.
    Renderer MapMember's Renderer property is changed.
    SavedMaxScale MapMember's SavedMaxScale property is changed.
    SavedMinScale MapMember's SavedMinScale property is changed.
    SceneLayerType MapMember's SceneLayerType property is changed.
    Selectability MapMember's IsSelectable property is changed.
    SelectRelatedData MapMember's SelectRelatedData property is changed.
    ShowPopups MapMember's ShowPopups property is changed.
    Snappability MapMember's IsSnappable property is changed.
    SublayerVisibilityMode A group layer's SublayerVisibilityMode property has changed.
    Transparency MapMember's Transparency property is changed.
    URL MapMember's URL property is changed.
    Visibility MapMember's Visibility property is changed.
    VoxelSelectedVariable MapMember's VoxelSelectedVariable property is changed.
    Example
    Subscribe for Changes to a Voxel Layer
    ArcGIS.Desktop.Mapping.Events.MapMemberPropertiesChangedEvent.Subscribe((args) =>
    {
        var voxel = args.MapMembers.OfType<VoxelLayer>().FirstOrDefault();
        if (voxel == null)
            return;
        //Anything changed on a voxel layer?
        //At 2.x - if (args.EventHints.Any(hint => hint == MapMemberEventHint.VoxelSelectedVariableProfileIndex))
        if (args.EventHints.Any(hint => hint == MapMemberEventHint.VoxelSelectedVariable))
        {
            //Voxel variable profile selection changed
            var changed_variable_name = voxel.SelectedVariableProfile.Variable;
            //TODO respond to change, use QueuedTask if needed
    
        }
        else if (args.EventHints.Any(hint => hint == MapMemberEventHint.Renderer))
        {
            //This can fire when a renderer becomes ready on a new layer; the selected variable profile
            //is changed; visualization is changed, etc.
            var renderer = voxel.SelectedVariableProfile.Renderer;
            //TODO respond to change, use QueuedTask if needed
    
        }
    });
    
    ArcGIS.Desktop.Mapping.Voxel.Events.VoxelAssetChangedEvent.Subscribe((args) =>
    {
        //An asset changed on a voxel layer
        System.Diagnostics.Debug.WriteLine("");
        System.Diagnostics.Debug.WriteLine("VoxelAssetChangedEvent");
        System.Diagnostics.Debug.WriteLine($" AssetType: {args.AssetType}, ChangeType: {args.ChangeType}");
    
        if (args.ChangeType == VoxelAssetEventArgs.VoxelAssetChangeType.Remove)
            return;
        //Get "what"changed - add or update
        //eg IsoSurface
        VoxelLayer voxelLayer = null;
        if (args.AssetType == VoxelAssetEventArgs.VoxelAssetType.Isosurface)
        {
            var surface = MapView.Active.GetSelectedIsosurfaces().FirstOrDefault();
            //there will only be one selected...
            if (surface != null)
            {
                voxelLayer = surface.Layer;
                //TODO respond to change, use QueuedTask if needed
            }
        }
        //Repeat for Slices, Sections, LockedSections...
        //GetSelectedSlices(), GetSelectedSections(), GetSelectedLockedSections();
    });
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.Events.MapMemberEventHint

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also