LinePenTransparent: Integer;
The LinePenTransparent property determines line transparency degree.
Available values should be within the range [0,100]. The 100 value corresponds to full transparency, the 0 value corresponds to full opaqueness.
Executing the example requires that the repository contains a workspace with the IWSTYLE identifier that contains a line.
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.LinePenColor := GxColor.FromName("Green");
Style.LinePenTransparent := 45;
Wsp.EndUpdate;
(Wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing the example green color and the set transparency degree are used for the line.
See also: