ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Editing Namespace / InspectorProvider Class / Create Method
Example

In This Topic
    Create Method (InspectorProvider)
    In This Topic
    Creates an inspector that uses this provider to override default behavior. Multiple inspectors can be created using the same provider.
    Syntax
    public Inspector Create()
    Public Function Create() As Inspector

    Return Value

    Example
    Using the custom inspector provider class
    var layer = ArcGIS.Desktop.Mapping.MapView.Active.Map.GetLayersAsFlattenedList().OfType<ArcGIS.Desktop.Mapping.FeatureLayer>().FirstOrDefault();
    
    var provider = new MyProvider();
    Inspector _featureInspector = provider.Create();
    //Create an embeddable control from the inspector class to display on the pane
    var icontrol = _featureInspector.CreateEmbeddableControl();
    
    await _featureInspector.LoadAsync(layer, oid);
    var attribute = _featureInspector.Where(a => a.FieldName == "FontStyle").FirstOrDefault();
    var visibility = attribute.IsVisible; //Will return false
    
    attribute = _featureInspector.Where(a => a.FieldName == "ZOrder").FirstOrDefault();
    var highlighted = attribute.IsHighlighted; //Will return true
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also