Skip to main content

RelativeScalar Structure

Defines a scalar value that may be defined relative to a containing element.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public struct RelativeScalar : IEquatable<RelativeScalar>
View Source
InheritanceObject → ValueType → RelativeScalar
ImplementsIEquatable(RelativeScalar)

Constructors​

RelativeScalar(Double, RelativeUnit)Initializes a new instance of the RelativeScalar struct.

Properties​

BeginningThe value at the beginning of the range
EndThe value at the end of the range
MiddleThe value at the middle of the range
ScalarGets the scalar.
UnitGets the unit.

Methods​

Equals(Object)
(Overrides ValueType.Equals(Object))
Equals(RelativeScalar) 
GetHashCode()
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Parse(String)Parses a RelativeScalar string.
ToString()Returns a String representing this RelativeScalar instance.
(Overrides ValueType.ToString())
ToValue(Double)Converts a RelativeScalar into a final value.

Operators​

Equality(RelativeScalar, RelativeScalar) 
Inequality(RelativeScalar, RelativeScalar) 

See Also​

Reference​

Avalonia Namespace