Click or drag to resize

LayerSetPerViewportVisible Method

Controls layer visibility in specific viewports.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public void SetPerViewportVisible(
	Guid viewportId,
	bool visible
)

Parameters

viewportId
Type: SystemGuid
If not Guid.Empty, then the setting applies only to the viewport with the specified id. If Guid.Empty, then the setting applies to all viewports with per viewport layer settings.
visible
Type: SystemBoolean
true to make layer visible, false to make layer invisible.
Version Information

Rhino for Windows

Supported in: 6.0 BETA
See Also