RibbonComboBoxAutomationPeer.SetValue Method (String)

.NET Framework (current version)
 

Sets the Text property of the RibbonComboBox that is associated with this RibbonComboBoxAutomationPeer to the specified value.

Namespace:   System.Windows.Automation.Peers
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

public void SetValue(
	string value
)

Parameters

value
Type: System.String

The value to set the Text property to.

Exception Condition
ElementNotEnabledException

The RibbonComboBox that is associated with this RibbonComboBoxAutomationPeer is not enabled.

ArgumentNullException

value is null.

.NET Framework
Available since 4.5
Return to top
Show: