Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / UserDefinedProperty Class
Members Example
In This Topic
    UserDefinedProperty Class
    In This Topic
    User-defined property.
    Object Model
    UserDefinedProperty ClassProperty Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.ApiProperties.UserDefinedProperty

    Syntax
    public class UserDefinedProperty 
    Remarks
    Property defined by the user consists of a unique name and a Property.
    Example
    The following example shows how to use UserDefinedProperty class.
    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
    Public Constructors
     NameDescription
    Public Constructor Creates a new instance of a user-defined property.  
    Top
    Public Properties
     NameDescription
    Public Property Name of the user-defined property.  
    Public Property Value of the user-defined property.  
    Top
    See Also