Click or drag to resize

IDisplayOverlaysMasterGraphOverlay Property

Controls and reflects the Master McGraphOverlay member of the collection

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
Property MasterGraphOverlay As McGraphOverlay
	Get
	Set

Property Value

Type: McGraphOverlay
Remarks
The McFeatures.AutoDisplayOverlay is a shortcut to this property. The current MasterGraphOverlay McGraphOverlay instance is exposed or Nothing if there is none. Initially the MasterGraphOverlay is automatically set to the collection Item named "DefaultOverlay". Assignment to the MasterGraphOverlay property causes the assigned member of this DisplayOverlays collection to be made visible and all other McGraphOverlay instances in the collection to be made non-visible. In addition, the MasterGraphOverlay i the only one who's member McGraphObj instances are includedby default in the McFeatures.DisplayedObjects property. On assignment, you may assign any current member of this DisplayOverlays collection or Nothing if you wish to have no MasterGraphOverlay. If the assigned McGraphOverlay instance is not a member of the collection, an error is returned. On access, the property is 'Nothing' if there is no MasterGraphOverlay. When the McFeatures.DisplayOverlays collection is first accessed, the "DefaultOverlay" is the MasterGraphOverlay. McGraphOverlay instances subsequently added to the DisplayOverlays collection are not automatically made the MasterGraphOverlay.
Examples
VB
'Find the name of the MasterGraphOverlay of the ThisApplication.ActiveImage.RegionFeatures
Dim mgovMG As McGraphOverlay
Set mgovMG = ThisApplication.ActiveImage.RegionFeatures.DisplayOverlays.MasterGraphOverlay
If mgovMG Is Nothing Then
Set mgovMG = ThisApplication.ActiveImage.RegionFeatures.DisplayOverlays.Item "DefaultOverlay"
Set ThisApplication.ActiveImage.RegionFeatures.DisplayOverlays.MasterGraphOverlay = mgovMG
EndIf ' no current MasterGraphOverlay, so use the default
Results.Text = "MasterGraphOverlay Name= " + mgovMG.Name
'Set MasterGraphOverlay to Nothing
Set ThisApplication.ActiveImage.RegionFeatures.DisplayOverlays.MasterGraphOverlay = Nothing
Set mgovMG = Nothing    ' clean up
See Also