System.Object
EPLAN.Harness.API.ApiProperties.UserDefinedProperty
System.Object
EPLAN.Harness.API.ApiProperties.UserDefinedProperty
public class UserDefinedProperty
UserDefinedProperty myLength = new UserDefinedProperty("Length", new LengthProperty(23, Unit.Millimeter)); UserDefinedProperty myVoltage = new UserDefinedProperty("Max voltage", new VoltageProperty(100, Unit.Volt)); Console.WriteLine($"{myLength.Name} = {myLength.Property.ToString()}"); Console.WriteLine($"{myVoltage.Name} = {myVoltage.Property.Value} {myVoltage.Property.Unit.ToString()}"); // RESULTS: // Length = 23 mm // Max voltage = 100 Volt
Name | Description | |
---|---|---|
UserDefinedProperty Constructor | Creates a new instance of a user-defined property. |
Name | Description | |
---|---|---|
Name | Name of the user-defined property. | |
Property | Value of the user-defined property. |