Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / OptionalContentProperties Class / SetLayerDefaultState Method / SetLayerDefaultState(OptionalContentGroup,Boolean) Method
The OptionalContentGroup object that specifies the layer.
Indicates whether the layer is ON (visible) by default.

In This Topic
    SetLayerDefaultState(OptionalContentGroup,Boolean) Method
    In This Topic
    Sets the default state of a layer.
    Syntax
    'Declaration
     
    Public Overloads Sub SetLayerDefaultState( _
       ByVal layer As OptionalContentGroup, _
       ByVal on As System.Boolean _
    ) 
    public void SetLayerDefaultState( 
       OptionalContentGroup layer,
       System.bool on
    )

    Parameters

    layer
    The OptionalContentGroup object that specifies the layer.
    on
    Indicates whether the layer is ON (visible) by default.
    See Also