Class ChartRect
A filled rectangle.
public sealed record ChartRect : IChartMark, IEquatable<ChartRect>
- Inheritance
-
ChartRect
- Implements
- Inherited Members
Constructors
ChartRect(double, double, double, double, ChartColor, ChartCorner, double, bool, string?)
A filled rectangle.
public ChartRect(double X, double Y, double Width, double Height, ChartColor Color, ChartCorner Corner = ChartCorner.None, double Opacity = 1, bool Gap = true, string? Title = null)
Parameters
XdoubleYdoubleWidthdoubleHeightdoubleColorChartColorCornerChartCornerOpacitydoubleGapboolTitlestring
Properties
Color
public ChartColor Color { get; init; }
Property Value
Corner
public ChartCorner Corner { get; init; }
Property Value
Gap
public bool Gap { get; init; }
Property Value
Height
public double Height { get; init; }
Property Value
Opacity
public double Opacity { get; init; }
Property Value
Title
public string? Title { get; init; }
Property Value
Width
public double Width { get; init; }
Property Value
X
public double X { get; init; }
Property Value
Y
public double Y { get; init; }
Property Value
Methods
Deconstruct(out double, out double, out double, out double, out ChartColor, out ChartCorner, out double, out bool, out string?)
public void Deconstruct(out double X, out double Y, out double Width, out double Height, out ChartColor Color, out ChartCorner Corner, out double Opacity, out bool Gap, out string? Title)
Parameters
XdoubleYdoubleWidthdoubleHeightdoubleColorChartColorCornerChartCornerOpacitydoubleGapboolTitlestring
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ChartRect?)
public bool Equals(ChartRect? other)
Parameters
otherChartRect
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartRect?, ChartRect?)
public static bool operator ==(ChartRect? left, ChartRect? right)
Parameters
Returns
operator !=(ChartRect?, ChartRect?)
public static bool operator !=(ChartRect? left, ChartRect? right)