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
CropFromTop How much to crop the image, in fractions of 65536 of the total image height.
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.

Methods

Name Description
Create Overloaded
Create
Create(Integer, Integer, Integer, Integer)
Null Returns a null crop area.
Clone Returns a deep copy of this object
IsEmpty Returns true if all the coordinates are 0.
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.
IsNull Returns true if the record doesn't have a defined value.
HasValue Returns true if the record has a defined value. This is the inverse of IsNull

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.