Struct ValueMargin
A margin specified for a given value.
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public struct ValueMargin
Constructors
| Improve this Doc View SourceValueMargin(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 SourceHighMargin
Gets the high margin for a value.
Declaration
public double HighMargin { readonly get; }
Property Value
Type | Description |
---|---|
System.Double |
LowMargin
Gets the low margin for a value.
Declaration
public double LowMargin { readonly get; }
Property Value
Type | Description |
---|---|
System.Double |
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 SourceEquals(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
GetHashCode()
Returns the hash code of the value margin object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code. |
Overrides
Operators
| Improve this Doc View SourceEquality(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. |
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. |