API Documentation
>
CorelDRAW
>
2025-v26
>
Document
>
IVGDocument
Document.ClearSelection method
Deselects any selected object
Syntax:
Sub
ClearSelection
(
)
Remarks:
The
ClearSelection
method deselects any selected objects.
Examples:
The following VBA example creates a text object and then deselects it:
Sub Test() ActiveLayer.CreateArtisticText 0, 0, "Text string" ActiveDocument.ClearSelection End Sub