[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.ViewState.SetLayersUIState

SetLayersUIState Method

SetLayersUIState(bool?, params object[])

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.
  • null: the user did not change the visibility of the layers.
Declaration
public void SetLayersUIState(bool? state, params object[] layers)
Public Sub SetLayersUIState(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.