IWxLinkedBaloon.ShowLine

Syntax

ShowLine: Boolean;

ShowLine: boolean;

Description

The ShowLine property determines whether a callout line is displayed. True - enable callout line display, False - disable callout line display.

Example

Executing the example requires a form with the Button1 button, the WorkspaceBox component and the UiWorkspace component named UiWorkspace1, which is a data source for WorkspaceBox.

Add links to the Andy, Drawing, Forms, Workspace system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WS: IWxWorkspace;
    RectT, RectF: IWxLinkedBaloon;
    Point: IGxPointF;
Begin
    WS := UiWorkspace1.WxWorkspace;
    WS.BeginUpdate;
    //creating right callout with points
    RectF := WS.CreateLinkedBaloon;
    RectF.PointCount := 4;
    RectF.ShowLine := False;
    // creating left callout with points
    RectT := WS.CreateLinkedBaloon;
    RectT.PointCount := 4;
    Point := New GxPointF.Create(-450);
    RectT.PinPosition := Point;
    RectT.ShowLine := True;
    WS.EndUpdate;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Forms;
Imports Prognoz.Platform.Interop.Workspace;


Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WS: IWxWorkspace;
    RectT, RectF: IWxLinkedBaloon;
    Point: GxPointF = 
New GxPointFClass();
Begin
    WS := uiWorkspaceNet1.WxWorkspace;
    WS.BeginUpdate();
    
// create right callout with points
    RectF := WS.CreateLinkedBaloon();
    RectF.PointCount := 
4;
    RectF.ShowLine := 
False;
    
// create left callout with points
    RectT := WS.CreateLinkedBaloon();
    RectT.PointCount := 
4;
    Point.Create(-
450);
    RectT.PinPosition := Point;
    RectT.ShowLine := 
True;
    WS.EndUpdate();
End Sub;

After executing the example two callouts with points are created in the workspace. The left callout will have the line displayed, whereas the right one will not:

See also:

IWxLinkedBaloon