The Ynote API can be used for Scripting and for writing Plugins. For more information on these see Ynote Plugins and Ynote Scripts. All .NET 3.5 classes are supported for scripting / plugins.

More Information -

The IYnote Object.

The IYnote object represents ynote when the script is called / plugin is loaded. It has the following members / methods -

Important Classes

 

* e is TextChangedEventArgs. Use as new TextChangedEventArgs(Editor.Tb.Range);

Example code

1. Show a Editor

var edit = new Editor();

edit.Show(ynote.Panel, DockState.Document);

2. Get the Active Document

if ( ynote.Panel.ActiveDocument is Editor)

{

     return ynote.Panel.ActiveDocument as Editor;

}

3. Main Menu Items. See HelloPlugin in ynotesamples.

public enum YnoteMenu
    {
        FileMenu = 0,
        EditMenu = 1,
        ViewMenu = 2,
        ToolsMenu = 3,
        MacrosMenu = 4
    }
You can add items to these at runtime using ynote.Panel.Menu.MenuItems[YnoteMenu.FileMenu].MenuItems.Add