Interface IPropertyGrid
A property grid control based on the .NET Windows Forms library.
public interface IPropertyGrid : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
AttachedText
The static text attached to this control.
string AttachedText { get; }
Property Value
ErrorText
Returns the tooltip text of the error icon associated with this object.
string ErrorText { get; }
Property Value
Methods
GetPropertyValue<T>(string)
The value of the specified property in this property grid control.
T GetPropertyValue<T>(string propertyPath) where T : IConvertible
Parameters
propertyPathstringThe path of the property.
Returns
- T
Type Parameters
TThe type of the property value.
Remarks
If the value is a combo box or custom control, returns a string representation of the selected value. In that case, T is string.
SelectProperty(string)
Selects the specified property in this property grid control.
void SelectProperty(string propertyPath)
Parameters
propertyPathstringThe path of the property.
SetPropertyValue<T>(string, T)
Sets the value of the specified property in this property grid control.
void SetPropertyValue<T>(string propertyPath, T newPropertyValue) where T : IConvertible
Parameters
propertyPathstringThe path of the property.
newPropertyValueTThe new value of the property.
Type Parameters
TThe type of the property value.
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.