Export (0) Print
Expand All

WinMenuItem Class

Represents a menu item 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)

'Declaration
Public Class WinMenuItem _
	Inherits WinControl

The WinMenuItem type exposes the following members.

  NameDescription
Public methodWinMenuItemInitializes a new instance of the WinMenuItem class.
Public methodWinMenuItem(UITestControl)Initializes a new instance of the WinMenuItem class by using the provided parent control.
Top

  NameDescription
Public propertyAcceleratorKeyGets the keyboard shortcut for this menu item.
Public propertyAccessKeyGets the access key that is assigned to this control. (Inherited from WinControl.)
Public propertyBoundingRectangleGets the Bounding rectangle for this control. (Inherited from UITestControl.)
Public propertyCheckedGets or sets a value that indicates whether this menu item is checked.
Public propertyClassNameGets the class name for this control. (Inherited from UITestControl.)
Public propertyContainerGets or sets the container of this UITestControl. (Inherited from UITestControl.)
Public propertyControlIdGets the ID that is assigned to this control. (Inherited from WinControl.)
Public propertyControlNameGets the name of this control. (Inherited from WinControl.)
Public propertyControlTypeGets the type of the UI Control. (Inherited from UITestControl.)
Public propertyDisplayTextGets the text of this menu item.
Public propertyEnabledGets a value that indicates whether this control is enabled. (Inherited from UITestControl.)
Public propertyExistsGets a value that indicates whether this control exists on the user interface. (Inherited from UITestControl.)
Public propertyFilterPropertiesGets the property-value pair collection that is used to disambiguate a control. (Inherited from UITestControl.)
Public propertyFriendlyNameGets the name of this control to use in the user interface. (Inherited from UITestControl.)
Public propertyHasChildNodesGets or sets a value that indicates whether this menu item has child nodes.
Public propertyHasFocusGets a value that indicates whether this control currently has the focus in the user interface. (Inherited from UITestControl.)
Public propertyHelpTextGets the help text that is assigned to this control. (Inherited from WinControl.)
Public propertyIsTopLevelMenuGets or sets a value that indicates whether this menu item is the top-level menu.
Public propertyIsTopParentGets a value that indicates whether this control is the top-level element. (Inherited from UITestControl.)
Public propertyItemsGets the collection of all child items in this menu item.
Public propertyNameGets the name of this control. (Inherited from UITestControl.)
Public propertyNativeElementGets the native technology element that corresponds to this control. (Inherited from UITestControl.)
Public propertySearchConfigurationsGets or sets search configurations. (Inherited from UITestControl.)
Public propertySearchPropertiesGets the property-value pair collection that is used to identify a control. (Inherited from UITestControl.)
Protected propertySearchPropertiesSetExplicitlyGets a value that indicates whether the search properties for this control were set by the user in the user interface. (Inherited from UITestControl.)
Public propertyShortcutGets the uniform resource identifier (URI) for this menu item.
Public propertyTechnologyNameGets or sets the technology framework that implements this control. (Inherited from UITestControl.)
Public propertyTopParentGets the top-level parent of this control. (Inherited from UITestControl.)
Public propertyWindowHandleGets the window handle for this control. (Inherited from UITestControl.)
Public propertyWindowTitlesGets a collection of the window titles of the top-level window. (Inherited from UITestControl.)
Top

  NameDescription
Public methodCaptureImageCaptures the image of the UITestControl. The UITestControl must be present on the screen. (Inherited from UITestControl.)
Public methodCopyFromCreates a UITestControl object that references the same element on the user interface as the original UITestControl. (Inherited from UITestControl.)
Public methodDrawHighlightHighlights the control. (Inherited from UITestControl.)
Public methodEnsureClickableScrolls the user interface to make sure that the control is clickable. (Inherited from UITestControl.)
Public methodEnsureClickable(Point)Scrolls the user interface to a specific point to make sure that the control is clickable. (Inherited from UITestControl.)
Public methodEqualsDetermines whether the specified UITestControl is equal to the current UITestControl. (Inherited from UITestControl.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindFinds the UITestControl. (Inherited from UITestControl.)
Public methodFindMatchingControlsReturns a collection of all UITestControls that match the specified SearchProperties and FilterProperties. (Inherited from UITestControl.)
Public methodGetChildrenReturns a collection of all first-level children of the current UITestControl. (Inherited from UITestControl.)
Public methodGetClickablePointReturns a clickable point on the control. (Inherited from UITestControl.)
Public methodGetHashCodeReturns a unique value that represents the current UITestControl instance. (Inherited from UITestControl.)
Public methodGetParentReturns the parent of the current UITestControl. (Inherited from UITestControl.)
Public methodGetPropertyGets the value of the specified property. (Inherited from UITestControl.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUITestControlsForSearchGets an array of child controls in this control. (Inherited from WinControl.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetFocusSets the keyboard focus to the UITestControl. (Inherited from UITestControl.)
Public methodSetPropertySets the value of a given property. (Inherited from UITestControl.)
Public methodToStringReturns a String that represents the current UITestControl. (Inherited from UITestControl.)
Public methodTryGetClickablePointReturns a clickable point in the UITestControl. If the control is not clickable, this method returns false. (Inherited from UITestControl.)
Public methodWaitForControlCondition(Predicate(Of UITestControl))Blocks the current thread until this control meets the specified condition, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlCondition(Predicate(Of UITestControl), Int32)Blocks the current thread until this control meets the specified condition, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlEnabledBlocks the current thread until this control is enabled, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlEnabled(Int32)Blocks the current thread until this control is enabled, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlExistBlocks the current thread until this control occurs in the user interface, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlExist(Int32)Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlNotExistBlocks the current thread until this control no longer exists in the user interface, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlNotExist(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.)
Public methodWaitForControlPropertyEqual(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.)
Public methodWaitForControlPropertyEqual(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.)
Public methodWaitForControlPropertyNotEqual(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.)
Public methodWaitForControlPropertyNotEqual(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.)
Public methodWaitForControlReadyBlocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlReady(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.)
Top

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

Community Additions

ADD
Show:
© 2014 Microsoft