Class QtItem
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Qt.dll
The item is a part of a Qt AbstractItemModel container.
public class QtItem : Adapter, IAdapter
- Inheritance
-
QtItem
- Implements
- Inherited Members
Constructors
QtItem()
Creates a new QtItem adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected QtItem()
QtItem(Element)
Creates a new QtItem adapter instance.
public QtItem(Element element)
Parameters
elementElementThe element to create the adapter for.
Exceptions
- NullReferenceException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Properties
AccessibleDescription
The accessible description set on the item.
public virtual string AccessibleDescription { get; }
Property Value
AccessibleText
The accessible text set on the item.
public virtual string AccessibleText { get; }
Property Value
BackColor
The items' backgorund color.
public virtual object BackColor { get; }
Property Value
EditableText
The editor text set on the item.
public virtual string EditableText { get; }
Property Value
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
StatusTip
The status tip text set on the item.
public virtual string StatusTip { get; }
Property Value
TextColor
The items' text color.
public virtual object TextColor { get; }
Property Value
ToolTip
The tool tip text set on the item.
public virtual string ToolTip { get; }
Property Value
UserData
Custom user data set on the item.
public virtual object UserData { get; }
Property Value
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static QtItem FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- QtItem
The QtItem.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
FromPath(string)
Converts a string to an instance of this class by searching the root.
public static QtItem FromPath(string path)
Parameters
pathstringThe search path.
Returns
- QtItem
The QtItem.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Operators
implicit operator QtItem(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator QtItem(Element element)
Parameters
elementElementThe element to convert.
Returns
- QtItem
The QtItem.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator QtItem(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator QtItem(string path)
Parameters
pathstringThe search path.
Returns
- QtItem
The QtItem.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.