2.2.4.34.3 PageBase::GetExportRect


Description

Retrieve the Graph Export or Copy Page bounding box

Syntax

BOOL GetExportRect( RECT * pRect, BOOL bIgnoreMarginOffsets )

Parameters

pRect
[output] rectangle in logical pixels
bIgnoreMarginOffsets
[input] the export area can be adjusted by offsets and this controls to ignore it or not

Return

Returns TRUE as long as pRect is provided.

Examples

//This example assums your project's active page is a graph
void GetExportRect_ex()
{
	GraphPage gp = Project.Pages();
	if(!gp)
		return;
	
	GraphObject	go = create_rect_object( gp.Layers() );
	RECT rect;
	gp.GetExportRect(&rect, false);
	
	go.Left = rect.left;
	go.Top = rect.top;
	go.Height = rect.bottom - rect.top;
	go.Width = rect.right - rect.left;
}

Remark

See Also

Header to Included

origin.h