Table of Contents

TCropArea Record

Defines a cropping area for an image. If the values are not zero, only a part of the image will display on Excel.

Syntax

Unit: FlexCel.Core

TCropArea = record;

Fields

Name Description
CropFromBottom How much to crop the image, in fractions of 65536 of the total image height.
CropFromLeft How much to crop the image, in fractions of 65536 of the total image width.
CropFromRight How much to crop the image, in fractions of 65536 of the total image width.
CropFromTop How much to crop the image, in fractions of 65536 of the total image height.

Methods

Name Description
Clone Returns a deep copy of this object
Create Overloaded
Create
Create(Integer, Integer, Integer, Integer)
EqualValues Returns true if both instances of the objects contain the same values. Instances might be different, this method will return if their values are equal. Instances can be null.
HasValue Returns true if the record has a defined value. This is the inverse of IsNull
IsEmpty Returns true if all the coordinates are 0.
IsNull Returns true if the record doesn't have a defined value.
Null Returns a null crop area.

Operators

Name Description
Equality Adapts the = operator so it returns true when both instances have the same values.
Inequality Adapts the <> operator so it returns true when both instances have different values.