Note

 

Name

Note

Remark

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.

Hierarchy

Examples

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

You can use OriginObject::SetProp, OriginObject::GetProp and OriginObject::DoMethod functions to run the LabTalk script.
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");
}

header to Include

origin.h

Reference

Members

Name Brief Example
Create Create a new Notes window. Examples
Note Construct a Note object using the name of an existing Origin Note page. Examples

Property

Name Brief Example
Text String data member containing the text of the Notes window. Examples