Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / OptionalContentProperties Class / SetLayerInitialViewState Method / SetLayerInitialViewState(String,LayerInitialViewState) Method
The name of the layer.
The initial view state.

In This Topic
    SetLayerInitialViewState(String,LayerInitialViewState) Method
    In This Topic
    Sets the initial view state of a layer. Throws an exception if the layer with the specified name does not exist.
    Syntax
    'Declaration
     
    Public Overloads Sub SetLayerInitialViewState( _
       ByVal name As System.String, _
       ByVal value As LayerInitialViewState _
    ) 
    public void SetLayerInitialViewState( 
       System.string name,
       LayerInitialViewState value
    )

    Parameters

    name
    The name of the layer.
    value
    The initial view state.
    See Also