TextFontBrushTransparent: Integer;
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.
Executing the example requires that the repository contains a workspace with the IWSTYLE identifier that contains a shape.
Add links to the Andy, Drawing, Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
Wsp: IWxWorkspace;
Shape: IWxShape;
Style: IWxStyle;
Begin
// Get workspace for editing
Mb := MetabaseClass.Active;
Wsp := Mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
Wsp.BeginUpdate;
Shape := Wsp.Shapes.Item(0);
Shape.Text := "Text";
Style := Shape.Style;
Style.TextFontSize := 14;
Style.TextFontFamilyName := "Arial Black";
Style.TextFontBrushColor := GxColor.FromName("Red");
Style.TextFontBrushTransparent := 50;
Wsp.EndUpdate;
(Wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing the example an object contains text of the defined size, type, color and transparency.
See also: