Click or drag to resize

IMcGraphOverlay2LayerVisible Property

Reflects and sets visibility of a Layer or all Layers.

Namespace:  MediaCy.IQL.Display.Overlays
Assembly:  MediaCy.IQL.Display.Overlays (in MediaCy.IQL.Display.Overlays.dll) Version: 10.0.6912.0
Syntax
VB
Property LayerVisible ( 
	Optional Layer As Integer = -1
) As Boolean
	Get
	Set

Parameters

Layer (Optional)
Type: SystemInt32
If given, the Layer number, from 0 through 9, for which the visible state is being accessed or set. If not given or given as -1, then the visible state of all layers is being accessed or set. In this case on access, the property value will be True only if all layers are visible, and on assignment, all layers will be made visible or not depending on the assigned Boolean value. On assignment, the LastTargetLayer property is set to this value.

Property Value

Type: Boolean
Remarks
This property takes an argument to specify which layer is being accessed or assigned to. Assigning this property False for a layer will cause all McGraphObj instances in that layer to become non-visible. Note that this does not affect the mcgsVisible bit of the McGraphObj.Style property; if that bit is clear, then the object will not be displayed irrespective of which Layer it is in. The LayerVisible property is forced True whenever a visible McGraphObj with that Layer property is created. This avoids the problem of accidentally creating invisible objects via a tool or other means. Should you wish to add a visible object to some Layer without making LayerVisible True for it, then initially place the object in another, visible, Layer and then set its Layer property to the non-visible layer.
See Also