SetValueAsEditBoxOptions Enumeration

Represents the flag values for configuring how to set the value of an EditBox.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

public enum SetValueAsEditBoxOptions

Member nameDescription
NoneUse the default.
DeleteContentEnsure that the EditBox is empty before you set the value.
UseProgrammaticSet the value programmatically.
UseWindowMessageUse Windows message WM_SETTEXT to set the value of the EditBox. This can only be used with windowed controls.
UseCopyPasteUse the clipboard to set the value in text by using CTRL+{Insert} to paste the value into the EditBox.
UseSendKeysUse EditBox to set the value of the EditBox.
DoNotVerifyDo not verify the final value.
AllBecause EditBox can use a mix of values from this enumeration and SetValueAsComboBoxOptions, this option helps by removing only SetValueAsComboBoxOptions values from the option.

Because a ComboBox also has a EditBox component, these flags can be combined with OR by using the SetValueAsComboBoxOptions values.

Community Additions