IWxStyle.TextFontBrushTransparent

Syntax

TextFontBrushTransparent: Integer;

TextFontBrushTransparent: integer;

Description

The TextFontBrushTransparent property determines font 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 shape.

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

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Shape: IWxShape;
    Style: IWxStyle;
Begin
    // Get workspace for edit
    mb := MetabaseClass.Active;
    ws := mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
    ws.BeginUpdate;
    Shape := ws.Shapes.Item(0);
    Shape.Text := "Text";
    Style := Shape.Style;
    Style.TextFontSize := 14;
    Style.TextFontFamilyName := "Arial Black";
    Style.TextFontBrushColor := GxColor.FromName("Red");
    Style.TextFontBrushTransparent := 50;
    ws.EndUpdate;
    (ws As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Shape: IWxShape;
    Style: IWxStyle;
    Color: GxColorClassClass = 
New GxColorClassClass();
Begin
    
// Get workspace for edit
    mb := Params.Metabase;
    ws := mb.ItemById[
"IWSTYLE"].Edit() As IWxWorkspace;
    ws.BeginUpdate();
    Shape := ws.Shapes.Item[
0];
    Shape.Text := 
"Text";
    Style := Shape.Style;
    Style.TextFontSize := 
14;
    Style.TextFontFamilyName := 
"Arial Black";
    Style.TextFontBrushColor := Color.FromName(
"Red");
    Style.TextFontBrushTransparent := 
50;
    ws.EndUpdate();
    (ws 
As IMetabaseObject).Save();
End Sub;

After executing the example an object contains text of the defined size, type, color and transparency.   

See also:

IWxStyle