Table of Contents

Interface IPropertyGrid

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

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

string

ErrorText

Returns the tooltip text of the error icon associated with this object.

string ErrorText { get; }

Property Value

string

Methods

GetPropertyValue<T>(string)

The value of the specified property in this property grid control.

T GetPropertyValue<T>(string propertyPath) where T : IConvertible

Parameters

propertyPath string

The path of the property.

Returns

T

Type Parameters

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.

void SelectProperty(string propertyPath)

Parameters

propertyPath string

The 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

propertyPath string

The path of the property.

newPropertyValue T

The new value of the property.

Type Parameters

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.