[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.ViewState.IsLayerActive

IsLayerActive Method

IsLayerActive(object)

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.

Declaration
public bool IsLayerActive(object layer)
Public Function IsLayerActive(layer As Object) As Boolean
Parameters
Type Name Description
object layer

The layer to check.

Returns
Type Description
bool

true if the layer is active, false otherwise.

IsLayerActive(object, ViewMode)

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.

Declaration
public bool IsLayerActive(object layer, ViewState.ViewMode mode)
Public Function IsLayerActive(layer As Object, mode As ViewState.ViewMode) As Boolean
Parameters
Type Name Description
object layer

The layer to check.

ViewState.ViewMode mode

The target view mode.

Returns
Type Description
bool

true if the layer is active, false otherwise.