TE Edit Control .NET Core / .NET Framework Help
Product page

TerGetPageOrient

Get the page orientation and dimensions.

bool TerGetPageOrient( PageNum)
bool TerGetPageOrientEx( PageNum, out pWidth, out pHeight)
bool TerGetPageOrient2( PageNum, out pWidth, out pHeight, out pHiddenX, out pHiddenY)
int PageNum;Page number between 0 and TotalPages-1
int pWidth;Variable to receive the page width (in twips) after considering the orientation.
int pHeight;Variable to receive the page height (in twips) after considering the orientation.
int pHiddenX;Variable to receive the printer hidden area (in twips) in the x direction.
int pHiddenY;Variable to receive the printer hidden area (in twips) in the y direction.

Description: This function is available in the PageMode or PrintView mode only.

Return Value: This function returns true if the page uses the portrait orientation. Otherwise, it returns a false value.