> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ColorXmlSerializer

Namespace: [VM.Managed](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed)\
Assembly: VMAppCore.dll

This class is to represent the icon color.

```csharp theme={null}
public class ColorXmlSerializer
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ColorXmlSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ColorXmlSerializer.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ColorXmlSerializer(Color)

Initializes a new instance of the [ColorXmlSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ColorXmlSerializer.md) class.

```csharp theme={null}
public ColorXmlSerializer(Color color)
```

#### Parameters

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

The color.

### ColorXmlSerializer()

Initializes a new instance of the [ColorXmlSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ColorXmlSerializer.md) class.

```csharp theme={null}
public ColorXmlSerializer()
```

## Properties

### Data

Gets or sets the color.

```csharp theme={null}
public Color Data { get; set; }
```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

## Methods

### GetSchema()

```csharp theme={null}
public virtual XmlSchema GetSchema()
```

#### Returns

[XmlSchema](https://learn.microsoft.com/dotnet/api/system.xml.schema.xmlschema)

### ReadXml(XmlReader)

```csharp theme={null}
public virtual void ReadXml(XmlReader reader)
```

#### Parameters

`reader` [XmlReader](https://learn.microsoft.com/dotnet/api/system.xml.xmlreader)

### WriteXml(XmlWriter)

```csharp theme={null}
public virtual void WriteXml(XmlWriter writer)
```

#### Parameters

`writer` [XmlWriter](https://learn.microsoft.com/dotnet/api/system.xml.xmlwriter)

## Operators

### implicit operator Color(ColorXmlSerializer)

Cast operator.

```csharp theme={null}
public static implicit operator Color(ColorXmlSerializer o)
```

#### Parameters

`o` [ColorXmlSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ColorXmlSerializer.md)

The color xmlserializer.

#### Returns

[Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

### implicit operator ColorXmlSerializer(Color)

Cast operator.

```csharp theme={null}
public static implicit operator ColorXmlSerializer(Color o)
```

#### Parameters

`o` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

The color.

#### Returns

[ColorXmlSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ColorXmlSerializer.md)
