/// <summary> /// Resets the selected property to its default value. /// </summary> public void ResetSelectedProperty() { PropertyGridItem item = this.PropertyTableElement.SelectedGridItem as PropertyGridItem; if (item != null) { item.ResetValue(); } }
private void Reset() { PropertyGridItem item = this.propertyGridElement.SelectedGridItem as PropertyGridItem; if (item != null) { item.ResetValue(); this.propertyGridElement.EndEdit(); } }
private void Reset() { PropertyGridItem selectedGridItem = this.propertyTableElement.SelectedGridItem as PropertyGridItem; if (selectedGridItem == null) { return; } selectedGridItem.ResetValue(); this.propertyTableElement.EndEdit(); }