IWxStyle.LinePenTransparent

Syntax

LinePenTransparent: Integer;

Description

The LinePenTransparent property determines line transparency degree.

Comments

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 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(0As 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:

IWxStyle