IWxStyle.LinePenBeginWxCap

Syntax

LinePenBeginWxCap: WxLineCap;

Description

The LinePenBeginWxCap property determines type of a cap at the beginning of a line.

Comments

Default value: WxLineCap.ArrowRoundedFilled.

Example

Executing the example requires that repository contains a workspace with the IWSTYLE identifier containing lines.

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

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Link: IWxLink;
    Style: IWxStyle;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    ws := mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
    ws.BeginUpdate;
    Link := ws.Shapes.Item(0As IWxLink;
    Style := Link.Style;
    Style.LinePenBeginWxCap := WxLineCap.Arrow45DegreeFilled;
    Style.LinePenCapSize := 5;
    Style.LinePenColor := GxColor.FromName("Green");
    Style.LinePenEndWxCap := WxLineCap.ArrowRoundedEmpty;
    ws.EndUpdate;
    (ws As IMetabaseObject).Save;
End Sub UserProc;

After executing the example color, caps and their size are set for the line.

See also:

IWxStyle