AnnUngroup Example for Visual Basic
Note: This topic is for Document/Medical only.
'Please note the following:
'LEADRasterView1 refers to a LEADRasterView control
'Global declarations
Private WithEvents RasterAnn As LEADRasterAnnotation
Private RasterAnnToolbar As LEADRasterAnnToolBar
'In the Form_Load method:
Set RasterAnn = New LEADRasterAnnotation
Set RasterAnnToolbar = New LEADRasterAnnToolBar
RasterAnn.AnnParentRasterView = LEADRasterView1
'This examples ungroups all annotation objects that are grouped and selected.
Private Sub AnnUngroup_Click()
RasterAnn.AnnUngroup RasterAnn.AnnContainer, ANN_FLAG_SELECTED + ANN_FLAG_RECURSE, ""
End Sub