ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / GraphicsLayer Class


In This Topic
    GraphicsLayer Class Methods
    In This Topic

    For a list of all members of this type, see GraphicsLayer members.

    Public Methods
     NameDescription
    Public Method Gets if the mapMember supports time filtering and can clear the time filter. Clearing the time filter ensures that data is always shown. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Gets if the mapMember supports time filtering. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method calling code must run on MCT (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method calling code can be run on any thread (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Check if the layer's data source can be replace with this dataset. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Check if blending mode can be set on this layer. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets whether the elevation type definition can be set on the layer. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets if the mapMember supports time filtering and if the specified time parameters are valid. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Refreshes the layer drawing and clears the feature cache (for layer types supporting it). This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Clears the time filter for the mapMember. Clearing the time filter ensures that data is always shown. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Performs a find and replace of workspace path for the layer. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets whether the Layer metadata can be edited or not. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets a CIMDataConnection value object. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Gets the time extent of the data for the specified fieldName - that is the minimum and maximum dates present in the data. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Gets the set of time intervals for the specified field name present in the data. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Returns the layer's CIM definition. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Returns computed effective maximum scale considering all its parent group layers. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Returns computed effective minimum scale considering all its parent group layers. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets the elevation type definition for the layer. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets the Layer metadata. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets the path of the dataset underneath the MapMember as a Uri. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Returns the layer spatial reference. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets the current time parameters for the mapMember. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Gets whether or not the MapMember stores its own metadata or uses metadata retrieved from its source. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public MethodOverloaded.  (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public MethodOverloaded.  (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Gets if time is supported for this mapMember. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Loads the layer's legend. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Returns extent of the layer optionally taking symbol size in account. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Replace the layer's data source. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the layer's blending mode. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the layer's caching options. If the layer's feature class supports feature caching, then both the display cache and feature cache are set otherwise just the display cache is set. This method must be called on the MCT. Use QueuedTask.Run (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Updates a MapMember's data source. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Updates the layer's CIM definition. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the duration after which the layer's display cache will be refreshed in the local storage. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the elevation type definition for the layer. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets whether the layer appears expanded i.e. showing legends on the TOC. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the maximum distance (in meter) at which the layer is visible in a 3D scene or globe view. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the layer's maximum scale (representative fraction) at which the layer is visible in a 2D map view. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the Layer metadata. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the minimum distance (in meter) at which the layer is visible in a 3D scene or globe view. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the layer's minimum scale (representative fraction) at which the layer is visible in a 2D map view. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the display name for the MapMember. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Sets whether the layer is visible at all scales. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Toggles enabling pop-ups for the layer. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Sets the specified time parameters for the mapMember. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Public Method Sets the transparency of the layer. 100 being fully transparent and 0 means opaque. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets whether or not the Layer will use its own metadata or the metadata from its underlying source (if it has one). This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Sets the layer visibility. This method must be called on the MCT. Use QueuedTask.Run. (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Public Method Returns the display name of the MapMember. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
    Top
    Protected Methods
     NameDescription
    Protected MethodOverloaded.  (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
    Protected Internal MethodOverloaded.  (Inherited from ArcGIS.Desktop.Mapping.Layer)
    Top
    Extension Methods
     NameDescription
    Public Extension MethodOverloaded. 
    Public Extension MethodAdd a collection of ArcGIS.Desktop.Layouts.GraphicElement based on the list of ArcGIS.Core.CIM.CIMGraphic. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Gets whether templates have been loaded for the specified map member.
    Public Extension Method Generate feature templates for a layer or standalone-table. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension MethodOverloaded. 
    Public Extension MethodOverloaded. 
    Public Extension MethodOverloaded. 
    Public Extension MethodOverloaded. 
    Public Extension Method Clears the current element selection within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension MethodOverloaded. 
    Public Extension Method Creates a new preset template from the specified set of features.
    Public Extension MethodOverloaded. 
    Public Extension Method Finds the element recursively with the given name within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Finds the elements recursively with the given names within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension MethodGet the collection of ArcGIS.Desktop.Layouts.GraphicElement from the GraphicsLayer. Nested groups within ArcGIS.Desktop.Layouts.GroupElement are not preserved.
    Public Extension Method Gets the currently selected elements within the GraphicsLayer collection.
    Public Extension Method Gets a template by name for a map member. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Gets all templates for a map member. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Gets all templates for a map member, including templates for any children. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Group the collection of elements. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension MethodLoads a row into a new inspector instance. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Gets whether the layer is controlled by a parcel fabric of the specified type.
    Public Extension Method Remove the element from the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Remove the elements from the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension MethodOverloaded. 
    Public Extension Method Select the element within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Select the elements within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension MethodOverloaded. 
    Public Extension MethodOverloaded. 
    Public Extension Method Ungroup the elements contained in 'group'. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Ungroup the elements contained in 'groups'. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Unselect the element within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Public Extension Method Unselect the elements within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run.
    Top
    See Also