[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.OptionalContentProperties.SetLayerDefaultState

SetLayerDefaultState Method

SetLayerDefaultState(OptionalContentGroup, bool)

Sets the default state of a layer.

Declaration
public void SetLayerDefaultState(OptionalContentGroup layer, bool on)
Public Sub SetLayerDefaultState(layer As OptionalContentGroup, [on] As Boolean)
Parameters
Type Name Description
OptionalContentGroup layer

The OptionalContentGroup object that specifies the layer.

bool on

Indicates whether the layer is ON (visible) by default.

SetLayerDefaultState(string, bool)

Sets the default state of a layer. Throws an exception if the layer with the specified name does not exist.

Declaration
public void SetLayerDefaultState(string name, bool on)
Public Sub SetLayerDefaultState(name As String, [on] As Boolean)
Parameters
Type Name Description
string name

The name of the layer.

bool on

Indicates whether the layer is ON (visible) by default.