This document is archived and information here might be outdated.  Recommended version.


ILayerColorLock.SetAllColorLocked Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

ILayerColorLock.SetAllColorLocked Method

Indicates if the color is locked for all layers.

[Visual Basic .NET]
Public Sub SetAllColorLocked ( _
    ByVal allLocked As Boolean _
)
[C#]
public void SetAllColorLocked (
    bool allLocked
);
[C++]
HRESULT SetAllColorLocked(
  VARIANT_BOOL allLocked
);
[C++]

Parameters allLocked [in] allLocked is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

SetAllColorLocked indicates whether all layers of a MultiLayerFillSymbol, MultiLayerMarkerSymbol or MultiLayerLineSymbol will be locked to their current color.

Remarks

Pass in TRUE to SetAllColorLocked method to prevent the color changes for all the layers.

See Also

ILayerColorLock Interface