[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.ViewState.SetLayersUIStateExcept

SetLayersUIStateExcept Method

SetLayersUIStateExcept(bool?, params object[])

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.
  • null: the user did not change the visibility of the layers.
Declaration
public void SetLayersUIStateExcept(bool? state, params object[] layers)
Public Sub SetLayersUIStateExcept(state As Boolean?, ParamArray layers As Object())
Parameters
Type Name Description
bool? state

The desired state of the layer.

object[] layers

The array of layer names or OptionalContentGroup objects to be excluded.