Aracılığıyla paylaş


RibbonCheckBox.Click Event (2007 System)

Occurs when a user clicks the check box.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
<RibbonEventAttribute("onAction")> _
Public Event Click As EventHandler(Of RibbonControlEventArgs)
'Usage
Dim instance As RibbonCheckBox 
Dim handler As EventHandler(Of RibbonControlEventArgs)

AddHandler instance.Click, handler
[RibbonEventAttribute("onAction")]
public event EventHandler<RibbonControlEventArgs> Click
[RibbonEventAttribute(L"onAction")]
public:
 event EventHandler<RibbonControlEventArgs^>^ Click {
    void add (EventHandler<RibbonControlEventArgs^>^ value);
    void remove (EventHandler<RibbonControlEventArgs^>^ value);
}
JScript does not support events.

Remarks

The Click event is raised when a user clicks the check box. It is raised after Checked has been updated to reflect the user's action. You can, for example, update the Ribbon interface when the user checks a check box by adding code that tests the most recent value of Checked to the Click event handler.

.NET Framework Security

See Also

Reference

RibbonCheckBox Class

RibbonCheckBox Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview