PageBase::GetPageInfo

 

Description

Get property info of pagebase, such as size, type, location etc. For details see tagPropertyInfo in file OC_TYPES.H

Syntax

BOOL GetPageInfo( PropertyInfo & stPgInfo )

Parameters

stPgInfo
[output] the property info of pagebase.

Return

Returns TRUE on success and FALSE on failure.

Examples

EX1

void GetPageInfo_Ex1()
{
    PageBase pb = Project.Pages();
    if( !pb )
    {
        printf("none page in current project.\n");
        return;
    }
    PropertyInfo PgInfo;
    if( pb.GetPageInfo(PgInfo) )
        printf("Location is %s.\n",PgInfo.szLocation);
    else
        printf("Fail to Get PageInfo.");
}

Remark

See Also

header to Included

origin.h