Table of Contents

TChartRelativeRectangle Record

A rectangle used in charts that is relative to a parent rectangle. The coordinates of the rectangle go between 0 and 1 where 0 means 0%% of the coordinate of the parent, and 1 means 100%%.

Syntax

Unit: FlexCel.Core

TChartRelativeRectangle = record;

Methods

Name Description
Create Creates a new TChartRelative​Rectangle.​
CalcRect Overloaded
CalcRect(TUIPointF, TUIRectangle)
CalcRect(TUIPointF, TUIRectangle, Double, Double)

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.

Properties

Name Description
X1 Percent of the parent coordinate. 0 means parent.Left and 1 means parent.Right.
Y1 Percent of the parent coordinate. 0 means parent.Top and 1 means parent.Bottom.
X2 Percent of the parent coordinate. This value depends on WidthMode.
If WidthMode is Factor, then 0 means 0 width, and 1 the width of the parent.
If WidthMode is Edge, then 0 means parent.Left and 1 means parent.Right.
Y2 Percent of the parent coordinate. This value depends on HeightMode.
If HeightMode is Factor, then 0 means 0 height, and 1 the height of the parent.
If HeightMode is Edge, then 0 means parent.Top and 1 means parent.Bottom.
XMode Defines how X1 behaves. When this value is Factor, X1 is a percent of the offset from the default position.
When this value is Edge, X1 is the left coordinate of the point.
YMode Defines how Y1 behaves. When this value is Factor, Y1 is a percent of offset from the default position.
When this value is Edge, Y1 is the top coordinate of the point.
WidthMode Defines how X2 behaves. When this value is Factor, X2 is a percent of the width of the rectangle.
When this value is Edge, X2 is the right coordinate of the rectangle.
HeightMode Defines how Y2 behaves. When this value is Factor, Y2 is a percent of the height of the rectangle.
When this value is Edge, Y2 is the bottom coordinate of the rectangle.
Automatic Returns a new rectangle with no position set.