IWxStyle.LinePenCapSize

Syntax

LinePenCapSize : Double;

Description

The LinePenCapSize property determines size of line caps.

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