Autodesk.AutoCAD.DatabaseServices Namespace > LayerStateManager Class > LayerStateManager Methods > RestoreLayerState Method
LayerStateManager.RestoreLayerState Method
Description

 

Restores the layer state name and the VPLAYER settings for the viewport specified. Also restores attributes specified in clientMask.

Visual Basic
Public Function RestoreLayerState(
    name As string, 
    id As ObjectId, 
    undefinedLayerStatePolicy As Integer, 
    clientMask As LayerStateMasks
) As void
C#
public void RestoreLayerState(
    string name, 
    ObjectId id, 
    int undefinedLayerStatePolicy, 
    LayerStateMasks clientMask
);
Parameters
Parameters 
Description 
string name 
Input name of layer state to make current 
ObjectId id 
Input object ID of the viewport whose VPLAYER setting is to be updated with the viewport data stored 
int undefinedLayerStatePolicy 
Input value that indicates whether to handle undefined layers 
LayerStateMasks clientMask 
Input layer attribute mask 
Links
   Comments?