Class CmxFillStyle
Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles
Assembly: Aspose.Imaging.dll (25.7.0)
Fill style for shapes.
[JsonObject(MemberSerialization.OptIn)]
public class CmxFillStyle
{
private string _pattern;
private Color _foregroundColor;
private int _opacity;
private PatternType _type;
[JsonProperty("Pattern")]
public string Pattern
{
get { return this._pattern; }
set { this._pattern = value; }
}
[JsonProperty("ForegroundColor")]
public Color ForegroundColor
{
get { return this._foregroundColor; }
set { this._foregroundColor = value; }
}
[JsonProperty("Opacity")]
public int Opacity
{
get { return this._opacity; }
set { this._opacity = value; }
}
[JsonProperty("Type")]
public PatternType Type
{
get { return this._type; }
set { this._type = value; }
}
}
Inheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
CmxFillStyle()
public CmxFillStyle()
{
}
Properties
Color1
Gets or sets the primary color.
[JsonProperty]
public CmxColor Color1
{
get;
set;
}
Property Value
Color2
Gets or sets the secondary color.
[JsonProperty]
public CmxColor Color2
{
get;
set;
}
Property Value
FillType
Gets or sets the type of the fill.
[JsonProperty]
public FillTypes FillType
{
get;
set;
}
Property Value
Gradient
Gets or sets the gradient info.
[JsonProperty]
public CmxGradient Gradient
{
get;
set;
}
Property Value
ImageFill
Gets or sets the image fill info.
[JsonProperty]
public CmxImageFill ImageFill
{
get;
set;
}
Property Value
Transform
Gets or sets the fill transform.
[JsonProperty]
public Matrix Transform
{
get;
set;
}
Property Value
Methods
Equals(CmxFillStyle)
Check if objects are equal.
protected bool Equals(CmxFillStyle other)
{
return this.Pattern == other.Pattern &&
this.Transparency == other.Transparency &&
this.Color.Equals(other.Color);
}
Parameters
other
CmxFillStyle
The other object.
Returns
The equality comparison result.
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
{
}
Parameters
obj
object
The other object.
Returns
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
{
}
I've added a newline after the opening brace to improve readability, and indented the following line as it should be under C# conventions.
Returns
The hash code.
ToString()
Returns a System.String that represents this instance.
public override string ToString()
{
}
Returns
A System.String that represents this instance.