IChartArea.Padding

Fore Syntax

Padding: IGxRectF;

Fore.NET Syntax

Padding : Prognoz.Platform.Interop.Drawing.IGxRectF;

Description

The Padding property determines custom values of paddings from the chart edges.

Comments

To use the property, set the AutoPadding property to False. This property is saved with the chart. If an object from the previous version is loaded, the AutoPadding and Padding properties are set by default.

Fore Example

To execute the example, create a form with a button named Button1 on the form, the ChartBox component and the UiChart component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    c: IChart;
Begin
    c:= UiChart1.Chart;
    c.ChartArea.Padding:= New GxRectF.Create(0000);
    c.ChartArea.AutoPadding:= False;
End Sub Button1OnClick;

Clicking the Button1 button sets the zero padding from the chart edges.

Fore.NET Example

To execute the example, create a form with a button named button1 on the form, the ChartBoxNet and UiChartNet components.

...

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Drawing;

Private Sub button1_Click( sender : System.Object; e : System.EventArgs );
    Var
      c: IChart;
      rect:GxRectF;
    Begin
        c:= UiChartNet1.ChartUi.Chart;
        rect := New GxRectFClass();
        rect.Create(0,0,0,0);
        c.ChartArea.Padding:= rect;
        c.ChartArea.AutoPadding:= False;
    End Sub;

Clicking the button1 button sets zero padding from the chart edges.

See also:

IChartArea