Note
The Note class provides methods and properties common to all internal Origin Note pages (windows). The Project class contains a collection of Note objects.
An Origin C Note object is a wrapper object that is a reference to an internal Origin Note page. Origin C wrapper objects do not actually exist in Origin and merely refer to the internal Origin object. Consequently, multiple Origin C wrapper objects can refer to the same internal Origin object.
The Note class is derived from the PageBase and OriginObject classes from which it inherits methods and properties.
EX1
int Note_ex1() { Note note; note.Create(); // Create a new empty Notes window if( note.IsValid() ) { Note note2(note.GetName()); if( note2.IsValid() ) printf("note and note2 are both attached to '%s'\n", note2.GetName()); } return 0; }
EX2
void Note_labtalk_ex(string str = "Hello World.html") { string strFile=GetOriginPath(ORIGIN_PATH_SYSTEM) + "\\Samples\HTML\\" + str; string strExport = "c:\\test\\test.html"; Note note; note.Create(); note.DoMethod("Load", strFile); note.DoMethod("EXPORTHTML", strExport); note.SetProp("View",0); note.SetProp("Syntax",0); note.DoMethod("DUPLICATE"); note.DoMethod("Close"); }
origin.h