API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.ConvertToColorContext method
Replaces the existing document color context with the new one. Document colors preserve their appearances and may change their values.
Syntax:
Sub ConvertToColorContext(ByVal ColorContext As ColorContext)
Parameters:
Name Type Description
ColorContext
Remarks:
The ConvertToColorContext method replaces the existing color context for the document with a new color context. Document colors preserve their appearances, however, and may change in value.