ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / ShowHiddenFeatures Method
Example

In This Topic
    ShowHiddenFeatures Method
    In This Topic
    Removes all features from the current exclusion set. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void ShowHiddenFeatures()
    Public Sub ShowHiddenFeatures() 
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Feature currently in the exclusion set will now be displayed. See also HideSelectedFeatures
    Example
    Hide Selected features and Show Hidden features
    //var featSceneLayer = ...;
    if (featSceneLayer.HasAssociatedFeatureService)
      return;//Search and Select not supported
    
    await QueuedTask.Run(() =>
    {
      QueryFilter qf = new QueryFilter()
      {
        ObjectIDs = new List<long>() { 6069, 6070, 6071 },
        SubFields = "*"
      };
      featSceneLayer.Select(qf, SelectionCombinationMethod.New);
    
      featSceneLayer.HideSelectedFeatures();
      var selectionCount = featSceneLayer.SelectionCount;
    
      featSceneLayer.ShowHiddenFeatures();
      selectionCount = featSceneLayer.SelectionCount;
    
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also