Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / ViewState Class / SetLayerUIState Method / SetLayerUIState(OptionalContentGroup,Nullable<Boolean>) Method
The target layer.
The desired state of the layer.

In This Topic
    SetLayerUIState(OptionalContentGroup,Nullable<Boolean>) Method
    In This Topic
    Sets the visibility of an optional content group (layer) in the context of an end-user UI. The state 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 Sub SetLayerUIState( _
       ByVal layer As OptionalContentGroup, _
       ByVal state As System.Nullable(Of Boolean) _
    ) 
    public void SetLayerUIState( 
       OptionalContentGroup layer,
       System.Nullable<bool> state
    )

    Parameters

    layer
    The target layer.
    state
    The desired state of the layer.
    See Also