/// <summary>
 /// Removes this design item from its parent property/collection.
 /// </summary>
 public void Remove()
 {
     if (ParentProperty != null)
     {
         if (ParentProperty.IsCollection)
         {
             ParentProperty.CollectionElements.Remove(this);
         }
         else
         {
             ParentProperty.Reset();
         }
     }
 }