Clears any cached Element items.

 

   

Syntax
 

[C#]
virtual void ClearCache()

[Visual Basic]
Overridable Function ClearCache() As void

 

   

Params
 
Name Description
none  

 

   

Notes
 

Clears any cached Element items.

Elements in properties are cached so that the Element you assign to a property is the same as the one you retrieve when you later get that property.

However it is possible that sometimes this behavior is not what you want.

For example suppose you assign a DeviceColorSpaceElement to a property and then later change the underlying Atom so that it is really a CalRGBColorSpace.

In this situation the retrieved ColorSpaceElement will continue to be interpreted as a DeviceColorSpaceElement and an invalid one at that.

What you really want to do here is to clear the cached Element thus allowing the property to be regenerated as a CalRGBColorSpace.

This function clears the cached Elements to allow this to happen.

 

   

Example
 
None.