Class HorizontalPullTarget
- Namespace
- Nalu.MagnetLayout
- Assembly
- Nalu.Maui.Layouts.dll
Represents a horizontal traction target in a magnet layout.
public record HorizontalPullTarget : IEquatable<HorizontalPullTarget>
- Inheritance
-
HorizontalPullTarget
- Implements
- Inherited Members
- Extension Methods
Constructors
HorizontalPullTarget(string, HorizontalPoles, Traction)
Represents a horizontal traction target in a magnet layout.
public HorizontalPullTarget(string Id, HorizontalPoles Pole, Traction Traction = Traction.Default)
Parameters
IdstringThe magnet element identifier.
PoleHorizontalPolesThe traction pole.
TractionTractionThe traction level.
Properties
Id
The magnet element identifier.
public string Id { get; init; }
Property Value
Pole
The traction pole.
public HorizontalPoles Pole { get; init; }
Property Value
Traction
The traction level.
public Traction Traction { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator HorizontalPullTarget(string)
Implicitly converts a string representation (e.g., "elementId.PoleName") into a HorizontalPullTarget.
public static implicit operator HorizontalPullTarget(string inputString)
Parameters
inputStringstring