ArcGIS Pro 2.9 API Reference Guide
Layer Class Methods


ArcGIS.Desktop.Mapping Namespace : Layer Class

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

Public Methods
 NameDescription
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.  
Public Method Check if blending mode can be set on this layer.  
Public Method Clears the layer display cache from the local storage. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Performs a find and replace of workspace path for the layer. This method must be called on the MCT. Use QueuedTask.Run  
Public MethodOverridden.  Gets whether the Layer metadata can be edited or not. This method must be called on the MCT. Use QueuedTask.Run  
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 Returns the layer's CIM definition. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Returns computed effective maximum scale considering all its parent group layers. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Returns computed effective minimum scale considering all its parent group layers. This method must be called on the MCT. Use QueuedTask.Run  
Public MethodOverridden.  Gets the Layer metadata. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Gets the URI path of the MapMember. 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  
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 Method Determines whether the layer is visible in the given map view  
Public Method Loads the layer's legend. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Returns extent of the layer optionally taking symbol size in account. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Replace the layer's data source. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Sets the layer's blending mode. This method must be called on the MCT. Use QueuedTask.Run  
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  
Public Method Sets the duration after which the layer's cache will be refreshed in the local storage. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Sets the layer's display cache type. This method must be called on the MCT. Use QueuedTask.Run  
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  
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  
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  
Public MethodOverridden.  Sets the Layer metadata. This method must be called on the MCT. Use QueuedTask.Run  
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  
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  
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 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 transparency of the layer. 100 being fully transparent and 0 means opaque. This method must be called on the MCT. Use QueuedTask.Run  
Public MethodOverridden.  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  
Public Method Sets the layer visibility. This method must be called on the MCT. Use QueuedTask.Run  
Public Method Returns the display name of the MapMember. (Inherited from ArcGIS.Desktop.Mapping.MapMember)
Top
Protected Methods
 NameDescription
Protected Internal Method (Inherited from ArcGIS.Desktop.Mapping.MapMember)
Protected Methodstatic (Shared in Visual Basic)  
Protected MethodOverloaded.  (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
Protected Internal Method (Inherited from ArcGIS.Desktop.Mapping.MapMember)
Protected Internal MethodOverloaded.   
Top
Extension Methods
 NameDescription
Public Extension MethodOverloaded. 
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 Method Creates a new preset template from the specified set of features.
Public Extension MethodOverloaded. 
Public Extension MethodOverloaded. 
Public Extension MethodOverloaded. 
Public Extension MethodLoad a feature 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 MethodOverloaded. 
Top
See Also

Reference

Layer Class
ArcGIS.Desktop.Mapping Namespace