Eplan Platform API
Eplan.EplApi.DataModel Namespace / PropertyDefinition Class / MaxIndex Property
Example

In This Topic
    MaxIndex Property (PropertyDefinition)
    In This Topic
    Allows to check maximal index of a given property.
    Syntax
    public int MaxIndex {get;}
    public:
    property int MaxIndex {
       int get();
    }

    Property Value

    Maximal index of a given property.
    Exceptions
    ExceptionDescription
    Thrown when called for PropertyValue created as a conversion from other type.
    Remarks
    Can be called only after retrieving form given API class property list.
    Example
    Article article; //a valid article object
    
    int i = article.Properties[Properties.Article.ARTICLE_HEIGHT].MaxIndex;
    
    PropertyValue pv = 2;
    int ii = pv.MaxIndex;
    See Also