RelativePointPosition: IGxPointF;
The RelativePointPosition property determines the position of a callout point relative to the shape center.
The example of a regular shape (left) and a shape with offset callout (right):
Executing the example requires a form, a button named Button1 on the form, the WorkspaceBox component, and the UiWorkspace component named UiWorkspace1 that is used as 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(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.
See also: