IWxRoundedRectangleBaloon.RoundingFactor

Syntax

RoundingFactor: Double;

RoundingFactor: double;

Description

The RoundingFactor property determines rounding level for a rectangular callout. Callout rounding value is directly proportional to the value of this property. Callout rounding value is specified within the range [0;1].

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WS: IWxWorkspace;
    Rect: IWxRoundedRectangleBaloon;
Begin
    WS := UiWorkspace1.WxWorkspace;
    WS.BeginUpdate;
    Rect := WS.CreateRoundedRectangleBaloon;
    Rect.RoundingFactor := 0.3;
    WS.EndUpdate;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Workspace;

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

After executing the example a rounded callout with the defined rounding level is created in a workspace. See below an example of a regular callout (left) and a callout with modified rounding level (right):

See also:

IWxRoundedRectangleBaloon