Share via


SetValueAsComboBoxOptions Enum

Definition

Represents the flag values for configuring how to set the value of a ComboBox.

This enumeration supports a bitwise combination of its member values.

public enum class SetValueAsComboBoxOptions
[System.Flags]
public enum SetValueAsComboBoxOptions
[<System.Flags>]
type SetValueAsComboBoxOptions = 
Public Enum SetValueAsComboBoxOptions
Inheritance
SetValueAsComboBoxOptions
Attributes

Fields

Name Value Description
None 0

Use the default.

UseLeftDropDownButton 1

Use the left drop-down button to expand the ComboBox. This member must be used with UseSelect.

UseSelect 2

Expand the ComboBox and select the option from the drop-down list.

UseSetAsEdit 4

If ComboBox is editable, use the SendKeys method to set the value in the edit box; otherwise, use the SendKeys method to set the value in the ComboBox.

DoNotVerifySendKeys 8

Use with UseSetAsEdit to disable verification of the value.

DoNotVerifyMirrorLanguage 16

If the ComboBox is set for a left-to-right language, you cannot assume the location of the drop-down button. Use this flag if the button is not exposed as part of the user interface (UI) tree and the UI test framework is expected to guess the position of the button.

UseQueryId 32

Use the query ID that is passed to the Search(Object, IUITechnologyElement, Int32) method to search in the ComboBox list.

PressEnterAfterTyping 64

Indicates to use the SendKeys method to send "{Enter}" after sending text.

ExpandProgrammatically 128

Expand the ComboBox programmatically.

Applies to