---
title: "XmpData..::.Clear Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_XmpData_Clear.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# XmpData.Clear Method 
 
Sets all elements in the array to zero, to **false**, or to a null reference (**Nothing** in Visual Basic), depending on the element type.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Clear
```
 
```csharp
public void Clear()
```
 
## Remarks
  
Reference-type elements are set to a null reference (**Nothing** in Visual Basic). Boolean-type elements are set to **false**. Other value-type elements are set to zero.
 
This method only clears the values of the elements; it does not delete the elements themselves.
   
## See Also

### Reference

- [XmpData Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_XmpData.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
