IWxSmoothBaloon.RelativePointPosition

Syntax

RelativePointPosition: 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.

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(0, 2);

WS.EndUpdate;

End Sub Button1OnClick;

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