2.2.4.26 LayoutPage


Name

LayoutPage

Remark

The LayoutPage class provides methods and properties common to all internal Origin layout pages (windows). The Project class contains a collection of LayoutPage objects.

An Origin C LayoutPage object is a wrapper object that is a reference to an internal Origin layout page object. 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 LayoutPage class is derived from the Page, PageBase, and OriginObject classes from which it inherits methods and properties.

Hierarchy

Examples

EX1

void LayoutPage_ex1()
{
    LayoutPage lp;
    lp.Create("Layout");
    if( lp.IsValid() )
    {
        LayoutPage lp2(lp.GetName());
        if( lp2.IsValid() )
            printf("lp and lp2 are both attached to '%s'\n", lp2.GetName());
    }
}

Header to Include

origin.h

Reference

Members

Name Brief Example
LayoutPage Construct a LayoutPage object using the name of an existing Origin layout page. Examples