    

 ## On this page

  

 

 # Class TopologyColorInfo

 Last update: 09.03.2026 

<a id="VM_Managed_CAD_TopologyColorInfo"></a>

Namespace: [VM.Managed.CAD](VM.Managed.CAD.md)  
Assembly: VMAppCore.dll

This class is to represent the color information of topology.

```csharp
public class TopologyColorInfo

```

#### Inheritance

object ← [TopologyColorInfo](VM.Managed.CAD.TopologyColorInfo.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Managed_CAD_TopologyColorInfo__ctor"></a> TopologyColorInfo()

Initializes a new instance of the  class

```csharp
public TopologyColorInfo()

```

## Properties

### <a id="VM_Managed_CAD_TopologyColorInfo_ColorInfo"></a> ColorInfo

Gets the color information.

```csharp
public Dictionary<int, Color> ColorInfo { get; }

```

#### Property Value

Dictionary&lt;int, Color&gt;

## Methods

### <a id="VM_Managed_CAD_TopologyColorInfo_GetSchema"></a> GetSchema()

This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return nullNothingnullptra null reference (Nothing in Visual Basic) (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.

```csharp
public virtual XmlSchema GetSchema()

```

#### Returns

XmlSchema

An  that describes the XML representation of the object that is produced by the  method and consumed by the  method.

### <a id="VM_Managed_CAD_TopologyColorInfo_ReadXml_System_Xml_XmlReader_"></a> ReadXml(XmlReader)

Generates an object from its XML representation.

```csharp
public virtual void ReadXml(XmlReader reader)

```

#### Parameters

`reader` XmlReader

The XmlReader stream from which the object is deserialized.

### <a id="VM_Managed_CAD_TopologyColorInfo_SetColor_VM_Managed_CAD_Builder_System_Int32___System_Drawing_Color_"></a> SetColor(Builder, int\[\], Color)

Sets the color information.

```csharp
public void SetColor(Builder builder, int[] arrIndexes, Color color)

```

#### Parameters

`builder` [Builder](VM.Managed.CAD.Builder.md)

The owner builder.

`arrIndexes` int\[\]

The topology indexes.

`color` Color

The color.

### <a id="VM_Managed_CAD_TopologyColorInfo_UnsetColor_VM_Managed_CAD_Builder_System_Int32___"></a> UnsetColor(Builder, int\[\])

Unsets the color information.

```csharp
public void UnsetColor(Builder builder, int[] arrIndexes)

```

#### Parameters

`builder` [Builder](VM.Managed.CAD.Builder.md)

The owner builder.

`arrIndexes` int\[\]

The topology indexes.

### <a id="VM_Managed_CAD_TopologyColorInfo_WriteXml_System_Xml_XmlWriter_"></a> WriteXml(XmlWriter)

Converts an object into its XML representation.

```csharp
public virtual void WriteXml(XmlWriter writer)

```

#### Parameters

`writer` XmlWriter

The XmlWriter stream to which the object is serialized.