Share via


RibbonComboBoxAutomationPeer.SetFocusCore Method

Sets the keyboard focus on the RibbonComboBox that is associated with this RibbonComboBoxAutomationPeer. This method is called by SetFocus.

Namespace:  Microsoft.Windows.Automation.Peers
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Protected Overrides Sub SetFocusCore
protected override void SetFocusCore()
protected:
virtual void SetFocusCore() override
abstract SetFocusCore : unit -> unit 
override SetFocusCore : unit -> unit 
protected override function SetFocusCore()

Exceptions

Exception Condition
InvalidOperationException

The RibbonComboBox that is associated with this RibbonComboBoxAutomationPeer did not get focus.

.NET Framework Security

See Also

Reference

RibbonComboBoxAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace