For performance reasons, the swatches displayed on the CreateFeaturePanel tool buttons are generated once and cached for reuse. If the feature symbology is programatically changed on a layer, the swatch cache for that layer can be cleared using this method.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub ClearLayerSwatchCache( _
ByVal layerId As Integer _
) |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As CreateFeaturePanel
Dim layerId As Integer
instance.ClearLayerSwatchCache(layerId) |
C# | |
---|
public void ClearLayerSwatchCache(
int layerId
) |
Parameters
- layerId
- The ID of the layer to clear.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also