Table of Contents

Class Format.Percentage

Inheritance
Format.Percentage
Implements
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

Percentage: Use percentage format for ratio values expressed as percentages.

public record Format.Percentage : Format.BaseNumber, IEquatable<Format>, Format.IMetricViewNumericFormat, IEquatable<Format.BaseNumber>, IEquatable<Format.Percentage>
Extension Methods

Constructors

Percentage()

public Percentage()

Percentage(Percentage)

protected Percentage(Format.Percentage original)

Parameters

Type Name Description
Format.Percentage original

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type Description
Type

Type

The type of format (i.e., "number", "currency", "percentage", "byte", "date", "datetime")

public override Format.FormatType Type { get; }

Property Value

Type Description
Format.FormatType

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

Type Name Description
object obj

Returns

Type Description
bool

Equals(BaseNumber?)

public override sealed bool Equals(Format.BaseNumber? other)

Parameters

Type Name Description
Format.BaseNumber other

Returns

Type Description
bool

Equals(Percentage?)

public virtual bool Equals(Format.Percentage? other)

Parameters

Type Name Description
Format.Percentage other

Returns

Type Description
bool

GetHashCode()

public override int GetHashCode()

Returns

Type Description
int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

Type Name Description
StringBuilder builder

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

Operators

operator ==(Percentage?, Percentage?)

public static bool operator ==(Format.Percentage? left, Format.Percentage? right)

Parameters

Type Name Description
Format.Percentage left
Format.Percentage right

Returns

Type Description
bool

operator !=(Percentage?, Percentage?)

public static bool operator !=(Format.Percentage? left, Format.Percentage? right)

Parameters

Type Name Description
Format.Percentage left
Format.Percentage right

Returns

Type Description
bool