Table of Contents

Class ControlNet11

Namespace
Ranorex
Assembly
Ranorex.Plugin.WinForms.dll

Capability of a .NET 1.1 Windows Forms control.

public class ControlNet11 : Adapter, IAdapter
Inheritance
ControlNet11
Implements
Inherited Members

Constructors

ControlNet11()

Creates a new ControlNet11 adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!

protected ControlNet11()

ControlNet11(Element)

Creates a new ControlNet11 adapter instance.

public ControlNet11(Element element)

Parameters

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Properties

ControlName

The name of the Windows Forms control.

public virtual string ControlName { get; }

Property Value

string

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static ControlNet11 FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

ControlNet11

The ControlNet11.

Exceptions

ArgumentNullException

If element is null.

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 ControlNet11 FromPath(string path)

Parameters

path string

The search path.

Returns

ControlNet11

The ControlNet11.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Operators

implicit operator ControlNet11(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator ControlNet11(Element element)

Parameters

element Element

The element to convert.

Returns

ControlNet11

The ControlNet11.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

implicit operator ControlNet11(string)

Implicitly converts a string to an instance of this class by searching the root.

public static implicit operator ControlNet11(string path)

Parameters

path string

The search path.

Returns

ControlNet11

The ControlNet11.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.