Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinMenu Class

 

Represents a menu control to test the user interface (UI) of Windows Forms.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting.WinControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)


[CLSCompliantAttribute(true)]
public class WinMenu : WinControl

NameDescription
System_CAPS_pubmethodWinMenu()

Initializes a new instance of the WinMenu class.

System_CAPS_pubmethodWinMenu(UITestControl)

Initializes a new instance of the WinMenu class.

NameDescription
System_CAPS_pubpropertyAccessibleDescription

Gets the description of the underlying IAccessible of this WinControl.(Inherited from WinControl.)

System_CAPS_pubpropertyAccessKey

Gets the access key that is assigned to this control.(Inherited from WinControl.)

System_CAPS_pubpropertyBoundingRectangle

Gets the Bounding rectangle for this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyClassName

Gets the class name for this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyContainer

Gets or sets the container of this UITestControl.(Inherited from UITestControl.)

System_CAPS_pubpropertyControlId

Gets the ID that is assigned to this control.(Inherited from WinControl.)

System_CAPS_pubpropertyControlName

Gets the name of this control.(Inherited from WinControl.)

System_CAPS_pubpropertyControlType

Gets the type of the UI Control.(Inherited from UITestControl.)

System_CAPS_pubpropertyEnabled

Gets a value that indicates whether this control is enabled.(Inherited from UITestControl.)

System_CAPS_pubpropertyExists

Gets a value that indicates whether this control exists on the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyFilterProperties

Gets the property-value pair collection that is used to disambiguate a control.(Inherited from UITestControl.)

System_CAPS_pubpropertyFriendlyName

Gets the name of this control to use in the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyHasFocus

Gets a value that indicates whether this control currently has the focus in the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyHeight

Gets height of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyHelpText

Gets the help text that is assigned to this control.(Inherited from WinControl.)

System_CAPS_pubpropertyIsTopParent

Gets a value that indicates whether this control is the top-level element.(Inherited from UITestControl.)

System_CAPS_pubpropertyItems

Gets the collection of all items in this menu.

System_CAPS_pubpropertyLeft

Gets the x-coordinate of the left edge of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyName

Gets the name of this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyNativeElement

Gets the native technology element that corresponds to this control.(Inherited from UITestControl.)

System_CAPS_pubpropertySearchConfigurations

Gets or sets search configurations.(Inherited from UITestControl.)

System_CAPS_pubpropertySearchProperties

Gets the property-value pair collection that is used to identify a control.(Inherited from UITestControl.)

System_CAPS_protpropertySearchPropertiesSetExplicitly

Gets a value that indicates whether the search properties for this control were set by the user in the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyState

Gets the state of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyTechnologyName

Gets or sets the technology framework that implements this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyToolTipText

(Inherited from WinControl.)

System_CAPS_pubpropertyTop

Gets the x-coordinate of the top edge of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyTopParent

Gets the top-level parent of this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyWidth

Gets width of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyWindowHandle

Gets the window handle for this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyWindowTitles

Gets a collection of the window titles of the top-level window. (Inherited from UITestControl.)

NameDescription
System_CAPS_pubmethodCaptureImage()

Captures the image of the UITestControl. The UITestControl must be present on the screen.(Inherited from UITestControl.)

System_CAPS_pubmethodCopyFrom(UITestControl)

Creates a UITestControl object that references the same element on the user interface as the original UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodDrawHighlight()

Highlights the control.(Inherited from UITestControl.)

System_CAPS_pubmethodEnsureClickable()

Scrolls the user interface to make sure that the control is clickable.(Inherited from UITestControl.)

System_CAPS_pubmethodEnsureClickable(Point)

Scrolls the user interface to a specific point to make sure that the control is clickable.(Inherited from UITestControl.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified UITestControl is equal to the current UITestControl.(Inherited from UITestControl.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFind()

Finds the UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodFindMatchingControls()

Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties.(Inherited from UITestControl.)

System_CAPS_pubmethodGetChildren()

Returns a collection of all first-level children of the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodGetClickablePoint()

Returns a clickable point on the control.(Inherited from UITestControl.)

System_CAPS_pubmethodGetHashCode()

Returns a unique value that represents the current UITestControl instance.(Inherited from UITestControl.)

System_CAPS_pubmethodGetParent()

Returns the parent of the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodGetProperty(String)

Gets the value of the specified property.(Inherited from UITestControl.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetUITestControlsForSearch()

Gets an array of child controls in this control.(Inherited from WinControl.)

System_CAPS_protmethodGetValidSearchProperties()

Gets the dictionary of search properties valid for the control.(Inherited from WinControl.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetFocus()

Sets the keyboard focus to the UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodSetProperty(String, Object)

Sets the value of a given property.(Inherited from UITestControl.)

System_CAPS_pubmethodToString()

Returns a String that represents the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodTryFind()

Tries to find the control on the user interface.(Inherited from UITestControl.)

System_CAPS_pubmethodTryGetClickablePoint(Point)

Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlCondition(Predicate<UITestControl>)

Blocks the current thread until this control meets the specified condition, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlCondition(Predicate<UITestControl>, Int32)

Blocks the current thread until this control meets the specified condition, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlEnabled()

Blocks the current thread until this control is enabled, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlEnabled(Int32)

Blocks the current thread until this control is enabled, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlExist()

Blocks the current thread until this control occurs in the user interface, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlExist(Int32)

Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlNotExist()

Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlNotExist(Int32)

Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyEqual(String, Object)

Blocks the current thread until the specified property of this control is equal to the specified value, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyEqual(String, Object, Int32)

Blocks the current thread until the specified property of this control is equal to the specified value, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyNotEqual(String, Object)

Blocks the current thread until the specified property of this control is not equal to the specified value, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyNotEqual(String, Object, Int32)

Blocks the current thread until the specified property of this control is not equal to the specified value, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlReady()

Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlReady(Int32)

Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires.(Inherited from UITestControl.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: