RibbonComboBoxAutomationPeer.SetValue Method
Sets the Text property of the RibbonComboBox that is associated with this RibbonComboBoxAutomationPeer to the specified value.
Namespace: Microsoft.Windows.Automation.Peers
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Sub SetValue ( _
value As String _
)
public void SetValue(
string value
)
public:
virtual void SetValue(
String^ value
) sealed
abstract SetValue :
value:string -> unit
override SetValue :
value:string -> unit
public final function SetValue(
value : String
)
Parameters
- value
Type: System.String
The value to set the Text property to.
Implements
IValueProvider.SetValue(String)
Exceptions
Exception | Condition |
---|---|
ElementNotEnabledException | The RibbonComboBox that is associated with this RibbonComboBoxAutomationPeer is not enabled. |
ArgumentNullException | value is null. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.