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
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
Value
Gets or sets the color value.
public uint Value
{
get;
set;
}
Property Value
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
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
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
{
}
Returns
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
A System.String that represents this instance.