IWxStyle.LinePenBeginWxCap

Syntax

LinePenBeginWxCap: WxLineCap;

Description

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

Comments

The default value: WxLineCap.ArrowRoundedFilled.

Example

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

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

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

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

See also:

IWxStyle