[]
Checks whether a layer is active in the view mode specified by the Mode property. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer.
public bool IsLayerActive(object layer)
| Type | Name | Description |
|---|---|---|
| object | layer | The layer to check. |
| Type | Description |
|---|---|
| bool |
Checks whether a layer is active in a specified view mode. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer.
public bool IsLayerActive(object layer, ViewState.ViewMode mode)
| Type | Name | Description |
|---|---|---|
| object | layer | The layer to check. |
| ViewState.ViewMode | mode | The target view mode. |
| Type | Description |
|---|---|
| bool |