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 ↳ ICheckableControlITextControlIButtonICheckBoxIComboBoxIControlSliceIDateTimePickerIElementIGridIGroupBoxILabelIListBoxIMenuINumericUpDownIProgressBarIRadioButtonIRadioButtonGroupISplitButtonIStatusStripITabITextBoxITitleBararrow-up-rightIToggleButtonIToolBarITreeView

Implements IValidatablearrow-up-right

Properties

IControl.Enabled Property

Gets a value indicating whether this instance is enabled.

bool Enabled { get; }

Property Value

System.Booleanarrow-up-right

IControl.Exists Property

Gets a value indicating whether this instance exists.

Property Value

System.Booleanarrow-up-right

IControl.Rectangle Property

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

Property Value

System.Drawing.Rectanglearrow-up-right

IControl.Selected Property

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

Property Value

System.Booleanarrow-up-right

IControl.Text Property

Gets the text value of this control.

Property Value

System.Stringarrow-up-right

IControl.Visible Property

Gets a value indicating whether this instance is visible.

Property Value

System.Booleanarrow-up-right

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.Pointarrow-up-right

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.Pointarrow-up-right

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.Pointarrow-up-right

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.Int32arrow-up-right

Starting position at x-axis relative to the control.

y System.Int32arrow-up-right

Starting position at y-axis relative to the control.

distanceX System.Int32arrow-up-right

Distance at x-axis relative to the coordinatex.

distanceY System.Int32arrow-up-right

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.Stringarrow-up-right

The attribute to get.System.Stringarrow-up-right.

Returns

System.Stringarrow-up-right 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.Bitmaparrow-up-right 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.Int32arrow-up-right

Number of pixels to move.

IControl.ScrollLeft(int) Method

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

Parameters

numberOfPixels System.Int32arrow-up-right

Number of pixels to move.

IControl.ScrollRight(int) Method

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

Parameters

numberOfPixels System.Int32arrow-up-right

Number of pixels to move.

IControl.ScrollUp(int) Method

Moves the vertical scrollbar up by that number of pixels.

Parameters

numberOfPixels System.Int32arrow-up-right

Number of pixels to move.

IControl.SendKeys(string) Method

Sends a key event to this instance.

Parameters

keys System.Stringarrow-up-right

The keySystem.Stringarrow-up-right.

Last updated

Was this helpful?