Search Results for

    Show / Hide Table of Contents

    TChartRelativeRectangle Structure

    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

    Namespace: FlexCel.Core

    public struct TChartRelativeRectangle

    Constructors

    Name Description
    TChartRelative​Rectangle Creates a new TChartRelative​Rectangle.​

    Methods

    Name Description
    CalcRect Overloaded
    CalcRect(TPointF, TUIRectangle)
    CalcRect(TPointF, TUIRectangle, Double, Double)

    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.
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com