IWxStyle.LinePenTransparent

Syntax

LinePenTransparent: Integer;

Description

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.

Example

Executing the example requires that repository contains a workspace with the IWSTYLE identifier containing a line.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Link: IWxLink;
    Style: IWxStyle;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    ws := mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
    ws.BeginUpdate;
    Link := ws.Shapes.Item(0As IWxLink;
    Style := Link.Style;
    Style.LinePenColor := GxColor.FromName("Green");
    Style.LinePenTransparent := 45;
    ws.EndUpdate;
    (ws As IMetabaseObject).Save;
End Sub UserProc;

After executing the example green color and the set transparency degree are used for the line.

See also:

IWxStyle