Share via


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

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

See Also

Reference

RibbonComboBoxAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace