Interface IPropertyGrid
A property grid control based on the .NET Windows Forms library.
Inherited Members
Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface IPropertyGrid : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Properties
AttachedText
The static text attached to this control.
Declaration
string AttachedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
ErrorText
Returns the tooltip text of the error icon associated with this object.
Declaration
string ErrorText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetPropertyValue<T>(string)
The value of the specified property in this property grid control.
Declaration
T GetPropertyValue<T>(string propertyPath) where T : IConvertible
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyPath | The path of the property. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The 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.
Declaration
void SelectProperty(string propertyPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyPath | The path of the property. |
SetPropertyValue<T>(string, T)
Sets the value of the specified property in this property grid control.
Declaration
void SetPropertyValue<T>(string propertyPath, T newPropertyValue) where T : IConvertible
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyPath | The path of the property. |
| T | newPropertyValue | The new value of the property. |
Type Parameters
| Name | Description |
|---|---|
| T | The 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.