ShadowBrushBackColor: IGxColor;
The ShadowBrushBackColor property determines color for shadow pattern.
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);
Style := Shape.Style;
Style.ShadowBrushForeColor := GxColor.FromName("Red");
Style.ShadowBrushForeTransparent := 50;
Style.ShadowBrushBackColor := GxColor.FromName("Blue");
Style.ShadowBrushBackTransparent := 10;
Style.ShadowBrushPattern := GxBrushPattern.Diagonals;
Wsp.EndUpdate;
(Wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing the example a shadow with the defined settings is displayed for the object.
See also: