Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / ViewState Class / SetLayersUIState Method
The desired state of the layer.
The array of layer names or OptionalContentGroup objects.

In This Topic
    SetLayersUIState Method
    In This Topic
    Sets the visibility of one or more layers in the context of an end-user UI. The layers array can contain layer names (strings) or OptionalContentGroup references. The state is interpreted as follows:
    • true: the user explicitly made the layers visible.
    • false: the user explicitly made the layers hidden.
    • a null reference (Nothing in Visual Basic): the user did not change the visibility of the layers.
    Syntax
    'Declaration
     
    Public Sub SetLayersUIState( _
       ByVal state As System.Nullable(Of Boolean), _
       ByVal ParamArray layers() As System.Object _
    ) 
    public void SetLayersUIState( 
       System.Nullable<bool> state,
       params System.object[] layers
    )

    Parameters

    state
    The desired state of the layer.
    layers
    The array of layer names or OptionalContentGroup objects.
    See Also