API Help
Eplan.EplApi.MasterData Namespace / MDPropertyValue Class / Indexes Property
Example

In This Topic
    Indexes Property (MDPropertyValue)
    In This Topic
    Returns array of indexes for which property value is not empty. It can be used with MDPropertyValue::operator [];
    Syntax
    public int[] Indexes {get;}
    public:
    property array<int>^ Indexes {
       array<int>^ get();
    }
    Example
    MDPart oPart = m_MDPartsDatabase.Parts[0];//a valid part object
    MDPropertyValue oProperty = oPart.Properties[Eplan.EplApi.MasterData.Properties.MDPartsDatabaseItem.ARTICLE_FREE_DATA_VALUE;];
    if (oProperty.Definition.IsIndexed)
    {
    	foreach (int index in oProperty.Indexes)
    	{
    		MDPropertyValue oPropertyElement = oProperty[index];
    		string sProperty = oPropertyElement.ToString();
    	}
    }
    See Also