Open topic with navigation

SetPropertyValue<T> Method
Sets the value of the specified property in this property grid control.
Remarks
Applicable only to a simple value. To change a value of a custom control value in a property grid, try to create a test object for the custom control and use it to change the value.

C# Syntax

    void SetPropertyValue<T>(
       string propertyPath,
       T newPropertyValue
    )
    where T: IConvertible

Parameters

propertyPath
  The path of the property.
newPropertyValue
  The new value of the property.

Type Parameters

T
  The type of the property value.