Exception | Description |
---|---|
NotIndexedPropertyException | Thrown when property wasn't an indexed\-property. |
When there are unused indexes between used this property will return last one before first empty property index.
For example:
1st, 2nd and 10th indexes are used so LastUsedIndex will return 2nd index as last used.
PropertyValue oProperty = m_oTestProject.Pages[0].Functions[0].Properties[ FUNC_INDEXED_PROPERTY ]; if(oProperty.IsIndexed) { for ( int i = oProperty.LastUsedIndex ; i \>= 1 ; --i ) { PropertyValue oPropertyElement = oProperty[ i ]; string sProperty = oPropertyElement.ToString(); } }