System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.TorqueProperty
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.TorqueProperty
public class TorqueProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with a torque value.
Class provides a method to convert values between units.
TorqueProperty torque = new TorqueProperty(29, Unit.NewtonMeter); Console.WriteLine(torque); torque.Convert(Unit.PoundFoot); Console.WriteLine(torque.ToString()); torque = "34 N.m"; Console.WriteLine(torque); Console.WriteLine($"Value: {(double)torque.Value}, Unit: {torque.Unit}"); // Results: // 29 N.m // 21,3893 lb.ft // 34 N.m // Value: 34, Unit: NewtonMeter
Name | Description | |
---|---|---|
TorqueProperty Constructor | Overloaded. |
Name | Description | |
---|---|---|
IsInterval | Specifies whether the property is interval. (Inherited from EPLAN.Harness.API.ApiProperties.Property) | |
Unit | Unit of the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property) | |
Value | Gets the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property) |
Name | Description | |
---|---|---|
Convert | Convert a property to the specified unit. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) | |
Equals | Is this unit class property equal to the following object? (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) | |
GetHashCode | Serves as the default hash function. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) | |
ToString | Overloaded. Returns a string that represents the current object. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
Addition | Sums two properties. |
Implicit Type Conversion | Implicit conversion from System.String to TorqueProperty. |
Subtraction | Subtracts two properties. |