Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / OptionalContentProperties Class / SetLayerDefaultState Method / SetLayerDefaultState(String,Boolean) Method
The name of the layer.
Indicates whether the layer is ON (visible) by default.

In This Topic
    SetLayerDefaultState(String,Boolean) Method
    In This Topic
    Sets the default state of a layer. Throws an exception if the layer with the specified name does not exist.
    Syntax
    'Declaration
     
    Public Overloads Sub SetLayerDefaultState( _
       ByVal name As System.String, _
       ByVal on As System.Boolean _
    ) 
    public void SetLayerDefaultState( 
       System.string name,
       System.bool on
    )

    Parameters

    name
    The name of the layer.
    on
    Indicates whether the layer is ON (visible) by default.
    See Also