IWxLinkedBaloon.Points

Syntax

Points(Index: Integer): IGxPointF;

Points(Index: integer): Prognoz.Platform.Interop.Drawing.IGxPointF;

Parameters

Index. Index of callout point.

Description

The Points property determines callout point coordinates.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WS: IWxWorkspace;
    Rect: IWxLinkedBaloon;
    Point: IGxPointF;
Begin
    WS := UiWorkspace1.WxWorkspace;
    WS.BeginUpdate;
    Rect := WS.CreateLinkedBaloon;
    Rect.PointCount := 4;
    Point := New GxPointF.Create(-0.41.2);
    Rect.Points(3) := Point;
    WS.EndUpdate;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Workspace;

 
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WS: IWxWorkspace;
    Rect: IWxLinkedBaloon;
    Point: GxPointF = 
New GxPointFClass();
Begin
    WS := uiWorkspaceNet1.WxWorkspace;
    WS.BeginUpdate();
    Rect := WS.CreateLinkedBaloon();
    Rect.PointCount := 
4;
    Point.Create(-
0.41.2);
    Rect.Points[
3] := Point;
    WS.EndUpdate();
End Sub;

Executing the example will change default coordinates (left) of the fourth callout point for the specified ones (right):

See also:

IWxLinkedBaloon