[]
        
(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)
Public Function GetLayerUIState(layer As OptionalContentGroup) As Boolean?
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)
Public Function GetLayerUIState(layerName As String) As Boolean?
Parameters
Type Name Description
string layerName

The name of the target layer.

Returns
Type Description
bool?

The state of the layer.