C# Class MyApplication.VanillaAddIn.AddIn

Inheritance: IDTExtensibility2, IRibbonExtensibility
显示文件 Open project: OneNoteDev/VanillaAddIn

Public Methods

Method Description
AddIn ( ) : System
GetCustomUI ( string RibbonID ) : string

Returns the XML in Ribbon.xml so OneNote knows how to render our ribbon

GetImage ( string imageName ) : IStream

Specified in Ribbon.xml, this method returns the image to display on the ribbon button

OnAddInsUpdate ( Array &custom ) : void
OnBeginShutdown ( Array &custom ) : void

Cleanup

OnConnection ( object Application, ext_ConnectMode ConnectMode, object AddInInst, Array &custom ) : void

Called upon startup. Keeps a reference to the current OneNote application object.

OnStartupComplete ( Array &custom ) : void
SetOneNoteApplication ( Microsoft.Office.Interop.OneNote.Application application ) : void
VanillaAddInButtonClicked ( IRibbonControl control ) : Task

Private Methods

Method Description
OnDisconnection ( ext_DisconnectMode RemoveMode, Array &custom ) : void
ShowForm ( ) : void

Method Details

AddIn() public method

public AddIn ( ) : System
return System

GetCustomUI() public method

Returns the XML in Ribbon.xml so OneNote knows how to render our ribbon
public GetCustomUI ( string RibbonID ) : string
RibbonID string
return string

GetImage() public method

Specified in Ribbon.xml, this method returns the image to display on the ribbon button
public GetImage ( string imageName ) : IStream
imageName string
return IStream

OnAddInsUpdate() public method

public OnAddInsUpdate ( Array &custom ) : void
custom System.Array
return void

OnBeginShutdown() public method

Cleanup
public OnBeginShutdown ( Array &custom ) : void
custom System.Array
return void

OnConnection() public method

Called upon startup. Keeps a reference to the current OneNote application object.
public OnConnection ( object Application, ext_ConnectMode ConnectMode, object AddInInst, Array &custom ) : void
Application object
ConnectMode ext_ConnectMode
AddInInst object
custom System.Array
return void

OnStartupComplete() public method

public OnStartupComplete ( Array &custom ) : void
custom System.Array
return void

SetOneNoteApplication() public method

public SetOneNoteApplication ( Microsoft.Office.Interop.OneNote.Application application ) : void
application Microsoft.Office.Interop.OneNote.Application
return void

VanillaAddInButtonClicked() public method

public VanillaAddInButtonClicked ( IRibbonControl control ) : Task
control IRibbonControl
return Task