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

MaxIndex Property (MDPropertyDefinition)
Allows to check maximal index value of given property.
Syntax
public int MaxIndex {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