LinePenEndWxCap : WxLineCap;
The LinePenEndWxCap property determines type of cap at the end of a line.
Default value: WxLineCap.ArrowRoundedFilled.
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: