LinePenBeginWxCap: WxLineCap;
The LinePenBeginWxCap property determines type of a cap at the beginning of a line.
The default value: WxLineCap.ArrowRoundedFilled.
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(0) As 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: