Previous Document Next Document

Object Model Reference : Classes : P : Palette : Methods : Palette.Close


Palette.Close

Sub Close()

Description

Member of Palette

The Close method closes a specified palette.

VBA example

The following VBA example closes all palettes except for the standard palette in CorelDRAW.

Sub Test()
 Dim pal As Palette
 For Each pal In Palettes
  If pal.Name <> "Default CMYK palette" Then pal.Close
 Next pal
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.