ArcGIS Pro 2.9 API Reference Guide
HasSymbolLayerDrawingAdded Method (GroupLayer)

ArcGIS.Desktop.Mapping Namespace > GroupLayer Class : HasSymbolLayerDrawingAdded Method
Determine whether the group layer already has Symbol Layer Drawing added. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public ValueTuple<bool,bool> HasSymbolLayerDrawingAdded()
Public Function HasSymbolLayerDrawingAdded() As ValueTuple(Of Boolean,Boolean)

Return Value

Returns a tuple. addedOnLayer will be True if the group layer has SLD added. addedOnParent will be true if the group layer is participating in SLD controlled by a parent group layer with SLD added.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
If a group layer already has SLD added has SLD added then tuple.addedOnLayer will be true. If the group layer is child of a parent group layer that has SLD added then tuple.addedOnLayer will be false and tuple.addedOnParent will be true. If a group layer, or a parent group layer, had SLD added but but it contains invalid identifiers on the symbol layers then HasSymbolLayerDrawingAdded() will return false (for the respective tuple value(s)).
Use CanAddSymbolLayerDrawing to determine if a group layer can have Symbol Layer Drawing, SLD, added.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GroupLayer Class
GroupLayer Members