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

In This Topic
    SetLayersUIStateExcept Method
    In This Topic
    Sets the visibility of all layers except those listed in the layers array, 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 all layers (except the specified ones) visible.
    • false: the user explicitly made all layers (except the specified ones) hidden.
    • a null reference (Nothing in Visual Basic): the user did not change the visibility of the layers.
    Syntax
    'Declaration
     
    Public Sub SetLayersUIStateExcept( _
       ByVal state As System.Nullable(Of Boolean), _
       ByVal ParamArray layers() As System.Object _
    ) 
    public void SetLayersUIStateExcept( 
       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 to be excluded.
    See Also