Show / Hide Table of Contents

Struct ValueMargin

A margin specified for a given value.

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
public struct ValueMargin

Constructors

| Improve this Doc View Source

ValueMargin(Object, Double, Double)

Initializes a new instance of the ValueMargin class.

Declaration
public ValueMargin(object value, double lowMargin, double highMargin)
Parameters
Type Name Description
System.Object value

The value the margin is associated with.

System.Double lowMargin

The lower margin.

System.Double highMargin

The higher margin.

Properties

| Improve this Doc View Source

HighMargin

Gets the high margin for a value.

Declaration
public double HighMargin { readonly get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

LowMargin

Gets the low margin for a value.

Declaration
public double LowMargin { readonly get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Value

Gets the value that the margin is associated with.

Declaration
public object Value { readonly get; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

Equals(Object)

Determines whether two value margins are equal.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The value margin to compare with this one.

Returns
Type Description
System.Boolean

A value indicating whether the two value margins are equal.

Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns the hash code of the value margin object.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

The hash code.

Overrides
System.ValueType.GetHashCode()

Operators

| Improve this Doc View Source

Equality(ValueMargin, ValueMargin)

Determines whether two unit value objects are equal.

Declaration
public static bool operator ==(ValueMargin left, ValueMargin right)
Parameters
Type Name Description
ValueMargin left

The left value margin.

ValueMargin right

The right value margin.

Returns
Type Description
System.Boolean

A value indicating whether two value margins objects are equal.

| Improve this Doc View Source

Inequality(ValueMargin, ValueMargin)

Determines whether two value margin objects are not equal.

Declaration
public static bool operator !=(ValueMargin left, ValueMargin right)
Parameters
Type Name Description
ValueMargin left

The left value margin.

ValueMargin right

The right value margin.

Returns
Type Description
System.Boolean

A value indicating whether two value margin objects are not equal.

  • Improve this Doc
  • View Source