IChartHint.DisplayBorder

Syntax

DisplayBorder: Boolean;

DisplayBorder: Boolean;

Description

The DisplayBorder property determines whether chart tooltips have a border.

Comments

Available values:

Example

To execute the example, on the form place the Button, ChartBox and UiErAnalyzer components (in the Fore.NET example use the ChartBoxNet and UiErAnalyzerNet components) named BUTTON1, BUTTON2, CHARTBOX1/CHARTBOXNET1 and UIERANALYZER1/UIERANALYZERNET1 respectively. In the ChartBox/ChartBoxNet component set the Source/UiSource property to UiErAnalyzer1/UiErAnalyzerNet1. In the Button1 component set the Text property to Hide Border value, in the Button2 component set the Show Border value. In the UiErAnalyzer/UiErAnalyzerNet component set the Active component to True. There should be an express report specified as the Object property for the UiErAnalyzer/UiErAnalyzerNet component.

Add links to the Chart, Drawing, Express, Forms, Forms.NET (for Fore.NET example) system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    Hint: IChartHint;
Begin
    Chart := ChartBox1.Chart;
    Hint := Chart.HintFormat;
    Hint.DisplayBorder:= 
False;
End Sub Button1OnClick;

Sub Button2OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    Hint: IChartHint;
Begin
    Chart := ChartBox1.Chart;
    Hint := Chart.HintFormat;
    Hint.DisplayBorder:= 
True;
End Sub Button2OnClick;

Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Drawing;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    Hint: IChartHint;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    Hint := Chart.HintFormat;
    Hint.DisplayBorder := 
False;
End Sub;

Private Sub button2_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    Hint: IChartHint;

Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    Hint := Chart.HintFormat;

    Hint.DisplayBorder := True; 
End Sub;

Clicking the Show Border button and pointing to the chart series displays the tooltip border:

Clicking the Hide Border button and pointing to the chart series hides the tooltip border:

See also:

IChartHint