[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.ViewState.GetLayerUIState

GetLayerUIState Method

GetLayerUIState(OptionalContentGroup)

Gets the visibility state of an optional content group (layer) in the context of an end-user UI The return value 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 bool? GetLayerUIState(OptionalContentGroup layer)
Parameters
Type Name Description
OptionalContentGroup layer

The target layer.

Returns
Type Description
bool?

The state of the layer.

GetLayerUIState(string)

Gets the visibility state of an optional content group (layer) in the context of an end-user UI The return value is interpreted as follows:

  • true: the user explicitly made the layer visible.
  • false: the user explicitly made the layer hidden.
  • null: the user did not change the visibility of the layer.
Declaration
public bool? GetLayerUIState(string layerName)
Parameters
Type Name Description
string layerName

The name of the target layer.

Returns
Type Description
bool?

The state of the layer.