Table of Contents

Class ChartPath

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

An SVG path, either stroked or filled. Outline adds a surface-colored gap around a filled shape.

public sealed record ChartPath : IChartMark, IEquatable<ChartPath>
Inheritance
ChartPath
Implements
Inherited Members

Constructors

ChartPath(string, ChartColor, bool, double, ChartStroke, bool, string?)

An SVG path, either stroked or filled. Outline adds a surface-colored gap around a filled shape.

public ChartPath(string Data, ChartColor Color, bool Filled = false, double Opacity = 1, ChartStroke Stroke = ChartStroke.Normal, bool Outline = false, string? Title = null)

Parameters

Data string
Color ChartColor
Filled bool
Opacity double
Stroke ChartStroke
Outline bool
Title string

Properties

Color

public ChartColor Color { get; init; }

Property Value

ChartColor

Data

public string Data { get; init; }

Property Value

string

Filled

public bool Filled { get; init; }

Property Value

bool

Opacity

public double Opacity { get; init; }

Property Value

double

Outline

public bool Outline { get; init; }

Property Value

bool

Stroke

public ChartStroke Stroke { get; init; }

Property Value

ChartStroke

Title

public string? Title { get; init; }

Property Value

string

Methods

Deconstruct(out string, out ChartColor, out bool, out double, out ChartStroke, out bool, out string?)

public void Deconstruct(out string Data, out ChartColor Color, out bool Filled, out double Opacity, out ChartStroke Stroke, out bool Outline, out string? Title)

Parameters

Data string
Color ChartColor
Filled bool
Opacity double
Stroke ChartStroke
Outline bool
Title string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartPath?)

public bool Equals(ChartPath? other)

Parameters

other ChartPath

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartPath?, ChartPath?)

public static bool operator ==(ChartPath? left, ChartPath? right)

Parameters

left ChartPath
right ChartPath

Returns

bool

operator !=(ChartPath?, ChartPath?)

public static bool operator !=(ChartPath? left, ChartPath? right)

Parameters

left ChartPath
right ChartPath

Returns

bool