Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPropertyDefinition Class / MaxIndex Property
Example

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

    Property Value

    Maximal index of given property.
    Exceptions
    ExceptionDescription
    Thrown when MaxIndex property is called on MDPropertyDefinition object with invalid property Id.
    Remarks
    Should be called only on MDPropertyDefiniton objects with valid Id.
    Example
    MDPart oPart = m_MDPartsDatabase.Parts[0]; //a valid part object
    
    //a valid call
    int iMaxIndex = oPart.Properties[Eplan.EplApi.MasterData.Properties.MDPartsDatabaseItem.ARTICLE_ADDITIONALTEXT].Definition.MaxIndex;
    See Also