[]
Removes a specified layer. Note that this method does not remove the content associated with the layer. For content removal, see RemoveLayers(bool, params OptionalContentGroup[]).
public void RemoveLayer(OptionalContentGroup layer)
Public Sub RemoveLayer(layer As OptionalContentGroup)
Type | Name | Description |
---|---|---|
OptionalContentGroup | layer | The OptionalContentGroup object that specifies the layer to remove. |
Removes a layer with a specified name. Throws an exception if the layer with the specified name does not exist. Note that this method does not remove the content associated with the layer. For content removal, see RemoveLayers(bool, params OptionalContentGroup[]).
public void RemoveLayer(string name)
Public Sub RemoveLayer(name As String)
Type | Name | Description |
---|---|---|
string | name | The name of the layer to remove. |