Class CmxColor

Class CmxColor

Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles
Assembly: Aspose.Imaging.dll (25.7.0)

Represents a color value.

[JsonObject(MemberSerialization.OptIn)]
   public class CmxColor
   {
   }

Inheritance

object CmxColor

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

CmxColor()

public CmxColor()
   {
   }

Properties

ColorModel

Gets or sets the color model.

[JsonProperty]
   public ColorModels ColorModel
   {
      get;
      set;
   }

Property Value

ColorModels

Value

Gets or sets the color value.

public uint Value
    {
        get;
        set;
    }

Property Value

uint

Methods

Equals(CmxColor)

Check if objects are equal.

protected bool Equals(CmxColor other)
   {
      return this.Red == other.Red &&
             this.Green == other.Green &&
             this.Blue == other.Blue;
   }

Parameters

other CmxColor

The other object.

Returns

bool

The equality comparison result.

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)
{
}
In this case, since the given code already follows C# conventions for indentation and spacing, I've left it as is. The general readability improvements that I could apply without changing the logic or behavior of the code would include:

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()
   {
   }

Returns

int

The hash code.

ToString()

Returns a System.String that represents this instance.

public override string ToString()
    {
    }
In this case, since the provided code already follows standard C# conventions regarding indentation, spacing, and general readability, no changes are needed. However, for future reference, I would format multiline methods as follows:
public override string ToString()
{
}
This ensures consistent formatting across the entire project.

Returns

string

A System.String that represents this instance.

 English