Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / ViewState Class / GetLayerUIState Method / GetLayerUIState(OptionalContentGroup) Method
The target layer.

In This Topic
    GetLayerUIState(OptionalContentGroup) Method
    In This Topic
    Gets the visibility state of an optional content group (layer) in the context of an end-user UI The return value is interpreted as follows:
    • true: the user explicitly made layer visible.
    • false: the user explicitly made layer hidden.
    • a null reference (Nothing in Visual Basic): the user did not change the visibility of layer.
    Syntax
    'Declaration
     
    Public Overloads Function GetLayerUIState( _
       ByVal layer As OptionalContentGroup _
    ) As System.Nullable(Of Boolean)
    public System.Nullable<bool> GetLayerUIState( 
       OptionalContentGroup layer
    )

    Parameters

    layer
    The target layer.

    Return Value

    The state of the layer.
    See Also