[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.ViewState.SetLayerUIState

SetLayerUIState Method

SetLayerUIState(OptionalContentGroup, bool?)

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.
  • null: the user did not change the visibility of layer.
Declaration
public void SetLayerUIState(OptionalContentGroup layer, bool? state)
Parameters
Type Name Description
OptionalContentGroup layer

The target layer.

bool? state

The desired state of the layer.

SetLayerUIState(string, bool?)

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 layerName visible.
  • false: the user explicitly made layerName hidden.
  • null: the user did not change the visibility of layerName.
Declaration
public void SetLayerUIState(string layerName, bool? state)
Parameters
Type Name Description
string layerName

The name of the target layer.

bool? state

The desired state of the layer.