> ## 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 BuilderColor

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

This class is to represent the color of builder.

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

#### Inheritance

object ←
[BuilderColor](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.BuilderColor.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### BuilderColor(byte, byte, byte, byte)

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

```csharp theme={null}
public BuilderColor(byte bA, byte bR, byte bG, byte bB)
```

#### Parameters

`bA` byte

The alpha.

`bR` byte

The red.

`bG` byte

The green.

`bB` byte

The blue.

### BuilderColor(Color)

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

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

#### Parameters

`color` Color

The color

### BuilderColor()

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

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

## Properties

### ColorA

Gets the alpha of color.

```csharp theme={null}
public int ColorA { get; }
```

#### Property Value

int

### ColorB

Gets the blue of color.

```csharp theme={null}
public int ColorB { get; }
```

#### Property Value

int

### ColorG

Gets the green of color.

```csharp theme={null}
public int ColorG { get; }
```

#### Property Value

int

### ColorR

Gets the red of color.

```csharp theme={null}
public int ColorR { get; }
```

#### Property Value

int

### EdgeColorInfo

Gets or sets the faces color information.

```csharp theme={null}
public TopologyColorInfo EdgeColorInfo { get; set; }
```

#### Property Value

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

### FaceColorInfo

Gets or sets the faces color information.

```csharp theme={null}
public TopologyColorInfo FaceColorInfo { get; set; }
```

#### Property Value

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

## Methods

### 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 theme={null}
public virtual XmlSchema GetSchema()
```

#### Returns

XmlSchema

An XmlSchema that describes the XML representation of the object that is produced by the WriteXml() method and consumed by the ReadXml() method.

### OnDeserialization(object)

Called when \[deserialization].

```csharp theme={null}
virtual void OnDeserialization(object sender)
```

#### Parameters

`sender` object

The sender.

### ReadXml(XmlReader)

Generates an object from its XML representation.

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

#### Parameters

`reader` XmlReader

The XmlReader stream from which the object is deserialized.

### WriteXml(XmlWriter)

Converts an object into its XML representation.

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

#### Parameters

`writer` XmlWriter

The XmlWriter stream to which the object is serialized.
