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

TerGetPictCropping

Retrieve picture cropping values.

int TerGetPictCropping( pict, type)
int pict;Id of the picture. Must be a valid number between 0 and TotalFonts - 1.
int type;

Cropping type. Use one of the following variables:

CROP_LEFT:      Left cropping
CROP_RIGHT:     Right cropping
CROP_TOP:       Top cropping
CROP_BOT:       Bottom cropping

Return Value: This function returns the picture cropping value (in twips unit) for the selected side of the picture. The function returns -1 to indicate an error condition.