Table of Contents

Class WinFormsBaseFlavorElement

Namespace
Ranorex.Plugin
Assembly
Ranorex.Plugin.WinForms.dll
public class WinFormsBaseFlavorElement : Win32FlavorElement
Inheritance
WinFormsBaseFlavorElement
Derived
Inherited Members

Constructors

WinFormsBaseFlavorElement(IntPtr)

protected WinFormsBaseFlavorElement(IntPtr handle)

Parameters

handle IntPtr

WinFormsBaseFlavorElement(IntPtr, string)

protected WinFormsBaseFlavorElement(IntPtr handle, string flavorName)

Parameters

handle IntPtr
flavorName string

Methods

CanReplace(FlavorElement)

Returns a value specifying if this flavor element can replace elem.

public override bool CanReplace(FlavorElement flavorElem)

Parameters

flavorElem FlavorElement

Returns

bool

True if this flavor element can replace elem, otherwise false.

Remarks

The base method returns true if this flavor element IsEqual(FlavorElement) to elem.

FromHandle(IntPtr, out TechnologyLimitation)

protected static WinFormsBaseFlavorElement FromHandle(IntPtr handle, out TechnologyLimitation limitation)

Parameters

handle IntPtr
limitation TechnologyLimitation

Returns

WinFormsBaseFlavorElement

GetAttributeValue(Element, string)

Needs to be implemented for attribute value read access.

public override object GetAttributeValue(Element element, string name)

Parameters

element Element

The element instance used.

name string

The name of the attribute (lowercased).

Returns

object

The attribute value.

GetControlNameByWindowMessage(out TechnologyLimitation)

protected string GetControlNameByWindowMessage(out TechnologyLimitation limitation)

Parameters

limitation TechnologyLimitation

Returns

string

GetElementCapabilities(Element, out Role, out string[], out string)

Supplies the role, a list of capabilities and a preferred capability names to the caller. This method called when building a new element from the flavor element.

public override void GetElementCapabilities(Element parent, out Role role, out string[] capabilities, out string preferredCap)

Parameters

parent Element

The parent element of the element to be constructed. (for reference only)

role Role

The role the element should have.

capabilities string[]

The list of capabilities the element should have.

preferredCap string

The preferred capability the element should have.

GetRuntimeTokenValues()

Gets the runtime token values. This must be implemented by the flavors.

protected override object[] GetRuntimeTokenValues()

Returns

object[]

A collection of objects representing a runtime token.

ReplaceEmptyString(string)

protected static string ReplaceEmptyString(string value)

Parameters

value string

Returns

string