예제 #1
0
        /// <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();
            }
        }
예제 #3
0
        private void Reset()
        {
            PropertyGridItem selectedGridItem = this.propertyTableElement.SelectedGridItem as PropertyGridItem;

            if (selectedGridItem == null)
            {
                return;
            }
            selectedGridItem.ResetValue();
            this.propertyTableElement.EndEdit();
        }