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
- 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.