Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / ViewState Class / IsLayerActive Method / IsLayerActive(Object,ViewMode) Method
The layer to check.
The target view mode.

In This Topic
    IsLayerActive(Object,ViewMode) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Overloads Function IsLayerActive( _
       ByVal layer As System.Object, _
       ByVal mode As ViewState.ViewMode _
    ) As System.Boolean
    public System.bool IsLayerActive( 
       System.object layer,
       ViewState.ViewMode mode
    )

    Parameters

    layer
    The layer to check.
    mode
    The target view mode.

    Return Value

    true if the layer is active, false otherwise.
    See Also