IWxStyle.ShadowBrushBackColor

Syntax

ShadowBrushBackColor: IGxColor;

ShadowBrushBackColor: Prognoz.Platform.Interop.Drawing.IGxColor;

Description

The ShadowBrushBackColor property determines color for shadow pattern.

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);
    Style := Shape.Style;
    Style.ShadowBrushForeColor := GxColor.FromName("Red");
    Style.ShadowBrushForeTransparent := 50;
    Style.ShadowBrushBackColor := GxColor.FromName("Blue");
    Style.ShadowBrushBackTransparent := 10;
    Style.ShadowBrushPattern := GxBrushPattern.Diagonals;
    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];
    Style := Shape.Style;
    Style.ShadowBrushForeColor := Color.FromName(
"Red");
    Style.ShadowBrushForeTransparent := 
50;
    Style.ShadowBrushBackColor := Color.FromName(
"Blue");
    Style.ShadowBrushBackTransparent := 
10;
    Style.ShadowBrushPattern := GxBrushPattern.wbpDiagonals;
    ws.EndUpdate();
    (ws 
As IMetabaseObject).Save();
End Sub;

After executing the example a shadow with the defined settings is displayed for the object.

See also:

IWxStyle