Parent Previous Next

Property ContourWidth : integer – Public – ReadOnly

Read ContourWidth to obtain the width of a contoured figure.

In zoom mode, if trimmed or pixelated, a contoured figure might differ in height and width from the base width and height. For instance a small, trimmed ellipse might have a contour width of 0, though the real height is 2. Read this property to balance contour height an real height. For instance, in an OnEndDraw event handler:

while DrawObject.ContourWidth = 0
 DrawObject.Width := DrawObject.Width + 1; // Force a spatial contour

If the figure i not a contour, TIfgure.Width is returned.

Se also
Contoured property
ContourHeight property
ContourRect property