Previous Document Next Document

Object Model Reference : Classes : D : DataItems : Methods : DataItems.Clear


DataItems.Clear

Sub Clear()

Description

Member of DataItems

The Clear method clears the values of all data items associated with the given shape. A data item stores information about a shape object.

The Name and CDRStaticID fields are used by CorelDRAW to identify objects and cannot be erased.

VBA example

The following VBA example clears all values from all data fields for the currently selected shape.

Sub Test()
 ActiveShape.ObjectData.Clear
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.