This documentation is archived and is not being maintained.

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

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