Get a property value (e.g. control.border or control.style.backgroundColor) with ability to specify wrappedJSObject's in Firefox and return the specified default value if the get fails for any reason.
Namespace: ArtOfTest.WebAii.Controls.HtmlControls
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
public virtual T GetValue<T>( string propertyName, bool isJsWrappedObject, T defaultValue )
Parameters
- propertyName
- Type: SystemString
The property name. - isJsWrappedObject
- Type: SystemBoolean
Only applies to Firefox browser. Set to true to indicate this HtmlControl is a wrappedJSObject. - defaultValue
- Type: T
The return value, if the property has no value (is null or the empty string)
Type Parameters
- T
- The type of the property.
Return Value
Type: TThe value of the property.
Remarks
Remarks
Examples
See Also