ImageGear PDF v25.2 - Updated
ToggleLayer(String,Boolean) Method




ImageGear.Formats.Vector Assembly > ImageGear.Formats.CAD Namespace > ImGearDWGPage Class > ToggleLayer Method : ToggleLayer(String,Boolean) Method
The name of the layer to be toggled.
Whether of not the layer should be visible.
Toggles specified layer
Syntax
'Declaration
 
Public Overloads Sub ToggleLayer( _
   ByVal layerName As String, _
   ByVal enable As Boolean _
) 
'Usage
 
Dim instance As ImGearDWGPage
Dim layerName As String
Dim enable As Boolean
 
instance.ToggleLayer(layerName, enable)
public void ToggleLayer( 
   string layerName,
   bool enable
)
public: void ToggleLayer( 
   string* layerName,
   bool enable
) 
public:
void ToggleLayer( 
   String^ layerName,
   bool enable
) 

Parameters

layerName
The name of the layer to be toggled.
enable
Whether of not the layer should be visible.
Remarks
If the Layer is not found, then this page does not change, and ImageGear.Core.ImGearException is thrown.
See Also

Reference

ImGearDWGPage Class
ImGearDWGPage Members
Overload List

Is this page helpful?
Yes No
Thanks for your feedback.