IWxSmoothBaloon.RelativePointPosition

Syntax

RelativePointPosition: IGxPointF;

RelativePointPosition: Prognoz.Platform.Interop.Drawing.IGxPointF;

Description

The RelativePointPosition property determines the position of a callout point relative to the shape center.

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: IWxRectangleBaloon;
Begin
    WS := UiWorkspace1.WxWorkspace;
    WS.BeginUpdate;
    Rect := WS.CreateRectangleBaloon;
    Rect.RelativePointPosition := New GxPointF.Create(02);
    WS.EndUpdate;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Workspace;

 
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WS: IWxWorkspace;
    Rect: IWxRectangleBaloon;
    PinPoint: GxPointF = 
New GxPointFClass();
Begin
    WS := uiWorkspaceNet1.WxWorkspace;
    WS.BeginUpdate();
    Rect := WS.CreateRectangleBaloon();
    PinPoint.Create(
02);
    Rect.RelativePointPosition := PinPoint;
    WS.EndUpdate();
End Sub;

After executing the example a rectangular callout is created in the workspace. The callout is offset relative to the shape center. The examples of an regular shape (left) and of a shape with offset callout (right):

See also:

IWxSmoothBaloon