public void set_PropertyValue(int propIndex, object pValue) { if (propIndex == 0) Position = (IPoint)pValue; else if (propIndex == 1) Rotation = (Double)pValue; else return; }