PadZone

Pads the zone by the value passed. Number of CSV passed values varies padding value by vector.

Syntax

bool PadZone (string SmartParameters)

Parameters

A CSV of smart parameter strings that indicate the pixels value by which to pad the calling field. Smart parameters are supported.

Returns

False, if the calling field does not have a valid position that is not a zero.

False, if there are zero or more than four CSV parameters.

False, if the Smart Parameter value returns as a non-numeric.

Otherwise, True.

Level

Field level.

Details

Pads calling field's position with each value passed. Number of passed values varies padding vector as follows:
  1. Pads Left, Top, Right, and Bottom by this value (that is, expand if positive)
  2. Pads as X,Y (X: pad to Left and Right, Y: pad to Top and Bottom)
  3. Pads as Left, Top, Right, and Bottom. (missing values are treated as zero).
  4. Pads as Left, Top, Right, and Bottom.
Example
PadZone("15") Pads 15 pixels to the Left, Right, Top and Bottom position.
PadZone("5,10") Pads 5 pixels to the Left and Right position, and 10 to the Top and Bottom position.
PadZone("-5,0,12,25") Pads -5 pixels to the Left, 0 to the Right, 12 to the Top and 25 to the Bottom position.