[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.OptionalContentProperties.SetLayerPrintState

SetLayerPrintState Method

SetLayerPrintState(OptionalContentGroup, LayerPrintState)

Sets the print state of a layer.

Declaration
public void SetLayerPrintState(OptionalContentGroup layer, LayerPrintState value)
Public Sub SetLayerPrintState(layer As OptionalContentGroup, value As LayerPrintState)
Parameters
Type Name Description
OptionalContentGroup layer

The OptionalContentGroup object that specifies the layer.

LayerPrintState value

The print state of the layer.

SetLayerPrintState(string, LayerPrintState)

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

Declaration
public void SetLayerPrintState(string name, LayerPrintState value)
Public Sub SetLayerPrintState(name As String, value As LayerPrintState)
Parameters
Type Name Description
string name

The name of the layer.

LayerPrintState value

The print state of the layer.