ArcGIS Pro 2.9 API Reference Guide
AreTemplatesLoaded(Layer) Method

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class > AreTemplatesLoaded Method : AreTemplatesLoaded(Layer) Method
The layer to check.
Gets whether templates have been loaded for the specified layer.
Syntax
public static bool AreTemplatesLoaded( 
   Layer layer
)
Public Overloads Shared Function AreTemplatesLoaded( _
   ByVal layer As Layer _
) As Boolean

Parameters

layer
The layer to check.

Return Value

True if templates have been loaded for this layer, false otherwise.
Remarks
If templates are not loaded for a layer, call GetTemplates(Layer) on the MCT to load the templates.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members
Overload List