IWxWorkspace.CreateRectangleBaloon

Syntax

CreateRectangleBaloon: IWxRectangleBaloon;

CreateRectangleBaloon(): Prognoz.Platform.Interop.Andy.IWxRectangleBaloon;

Description

The CreateRectangleBaloon method creates a rectangular callout.

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, Metabase system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        WS: IWxWorkspace;
        Rect: IWxRectangleBaloon;
    Begin
        WS := UiWorkspace1.WxWorkspace;
        WS.BeginUpdate;
        Rect := WS.CreateRectangleBaloon;
        WS.EndUpdate;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
    
Var
        WS: IWxWorkspace;
        Rect: IWxRectangleBaloon;
    
Begin
        WS := uiWorkspaceNet1.WxWorkspace;
        WS.BeginUpdate();
        Rect := WS.CreateRectangleBaloon();
        WS.EndUpdate();
 
End Sub;

After executing the example a rectangular callout is created in a workspace:

See also:

IWxWorkspace