IControl

Mobilize.QualityMate.ControlInterfaces

IControl Interface

Defines the basic interactions for controls that implement the Control interface.

public interface IControl :
Mobilize.QualityMate.ControlInterfaces.Behavior.IValidatable

Derived ↳ ICheckableControlITextControlIButtonICheckBoxIComboBoxIControlSliceIDateTimePickerIElementIGridIGroupBoxILabelIListBoxIMenuINumericUpDownIProgressBarIRadioButtonIRadioButtonGroupISplitButtonIStatusStripITabITextBoxITitleBarIToggleButtonIToolBarITreeView

Implements IValidatable

Properties

IControl.Enabled Property

Gets a value indicating whether this instance is enabled.

bool Enabled { get; }

Property Value

System.Boolean

IControl.Exists Property

Gets a value indicating whether this instance exists.

Property Value

System.Boolean

IControl.Rectangle Property

Gets the x and y coordinates, and width and height size of this control.

Property Value

System.Drawing.Rectangle

IControl.Selected Property

Gets a value indicating whether this instance is selected in a list.

Property Value

System.Boolean

IControl.Text Property

Gets the text value of this control.

Property Value

System.String

IControl.Visible Property

Gets a value indicating whether this instance is visible.

Property Value

System.Boolean

Methods

IControl.Click() Method

Clicks this instance.

IControl.Click(KeyModifiers) Method

Clicks this control.

Parameters

keyModifiers KeyModifiers

The key modifiers to be used when the control is clicked.

IControl.Click(MouseButton) Method

Clicks this control.

Parameters

mouseButton MouseButton

The mouse button used to perform the click.

IControl.Click(MouseButton, ClickType) Method

Clicks this control.

Parameters

mouseButton MouseButton

The mouse button used to perform the click.

clickType ClickType

The type of click to be performed.

IControl.Click(MouseButton, ClickType, KeyModifiers) Method

Clicks this control.

Parameters

mouseButton MouseButton

The mouse button used to perform the click.

clickType ClickType

The type of click to be performed.

keyModifiers KeyModifiers

The key modifiers to be used when the control is clicked.

IControl.Click(MouseButton, ClickType, Point) Method

Clicks this control.

Parameters

mouseButton MouseButton

The mouse button used to perform the click.

clickType ClickType

The type of click to be performed.

location System.Drawing.Point

The location within the control to be clicked.

IControl.Click(MouseButton, ClickType, Point, KeyModifiers) Method

Clicks this control.

Parameters

mouseButton MouseButton

The mouse button used to perform the click.

clickType ClickType

The type of click to be performed.

location System.Drawing.Point

The location within the control to be clicked.

keyModifiers KeyModifiers

The key modifiers to be used when the control is clicked.

IControl.Click(Point) Method

Clicks this control.

Parameters

location System.Drawing.Point

The location within the control to be clicked.

IControl.Drag(int, int, int, int) Method

Move the mouse cursor from a specific coordinate to a another.

Parameters

x System.Int32

Starting position at x-axis relative to the control.

y System.Int32

Starting position at y-axis relative to the control.

distanceX System.Int32

Distance at x-axis relative to the coordinatex.

distanceY System.Int32

Distance at y-axis relative to the coordinatey.

Remarks

Remember that distanceX and distanceY could be negative to move left and up.

IControl.DragAndDrop(IControl) Method

Drags this instance to the target control's position.

Parameters

target IControl

The target control.

IControl.DrawHighlight() Method

Draws a red highlight around this control.

IControl.GetAttribute(string) Method

Gets a specific attribute.

Parameters

attribute System.String

The attribute to get.System.String.

Returns

System.String A string which contains the attribute's value. If it's not found, null is returned instead.

IControl.GetScreenshot() Method

Gets a screenshot of this control.

Returns

System.Drawing.Bitmap The screenshot of this control.

IControl.MouseHover() Method

Positions the cursor over this instance.

IControl.ScrollDown(int) Method

Moves the vertical scrollbar down by that number of pixels.

Parameters

numberOfPixels System.Int32

Number of pixels to move.

IControl.ScrollLeft(int) Method

Moves the horizontal scrollbar to the left by that number of pixels.

Parameters

numberOfPixels System.Int32

Number of pixels to move.

IControl.ScrollRight(int) Method

Moves the horizontal scrollbar to the right by that number of pixels.

Parameters

numberOfPixels System.Int32

Number of pixels to move.

IControl.ScrollUp(int) Method

Moves the vertical scrollbar up by that number of pixels.

Parameters

numberOfPixels System.Int32

Number of pixels to move.

IControl.SendKeys(string) Method

Sends a key event to this instance.

Parameters

keys System.String

The keySystem.String.

Last updated

Was this helpful?