IWxBoxArrow.BoxHeightOffset

Syntax

BoxHeightOffset: Double;

BoxHeightOffset: double;

Description

The BoxHeightOffset property determines callout height.

Example

Executing the example requires that repository contains a workspace with the WSP identifier containing arrow callout.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    BArrow: IWxBoxArrow;
    Shapes: IWxShapes;
Begin
    
// Get workspace for editing
    mb := MetabaseClass.Active;
    ws := mb.ItemById(
"WSP").Edit As IWxWorkspace;
    Shapes := ws.Shapes;
    BArrow := ws.Shapes.Item(
0As IWxBoxArrow;
    BArrow.BoxHeightOffset := 
5;
    BArrow.BoxWidthOffset := 
10;
    (ws 
As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    BArrow: IWxBoxArrow;
    Shapes: IWxShapes;
Begin
    
// Get workspace for editing
    mb := Params.Metabase;
    ws := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    Shapes := ws.Shapes;
    BArrow := ws.Shapes.Item[
0As IWxBoxArrow;
    BArrow.BoxHeightOffset := 
5;
    BArrow.BoxWidthOffset := 
10;
    (ws 
As IMetabaseObject).Save();
End Sub;

After executing the example the callout is resized.

See also:

IWxBoxArrow