IWxStyle.LinePenEndWxCap

Syntax

LinePenEndWxCap : WxLineCap;

Description

The LinePenEndWxCap property determines type of cap at the end of a line.

Comments

Default value: WxLineCap.ArrowRoundedFilled.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Link: IWxLink;

Style: IWxStyle;

Begin

ws.BeginUpdate;

Link := ws.Shapes.Item(3) As IWxLink;

Style := Link.Style;

Style.LinePenBeginWxCap := WxLineCap.Arrow45DegreeFilled;

Style.LinePenCapSize := 5;

Style.LinePenColor := GxColor.FromName("Green");

Style.LinePenEndWxCap:= WxLineCap.ArrowRoundedEmpty;

ws.EndUpdate;

End Sub UserProc;

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

See also:

IWxStyle