Udostępnij za pośrednictwem


OfficeRibbon.Load Event (2007 System)

Occurs when the OfficeRibbon is loaded into the Microsoft Office application.

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

Syntax

'Declaration
<RibbonEventAttribute("onLoad")> _
Public Event Load As EventHandler(Of RibbonUIEventArgs)
'Usage
Dim instance As OfficeRibbon 
Dim handler As EventHandler(Of RibbonUIEventArgs)

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

Remarks

The Load event handler is automatically added to the Ribbon code file. Use this event handler to run custom code when the Ribbon loads.

.NET Framework Security

See Also

Reference

OfficeRibbon Class

OfficeRibbon Members

Microsoft.Office.Tools.Ribbon Namespace