IWxSelectionStyle.GroupFrameColor

Syntax

GroupFrameColor: IGxColor;

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

Description

The GroupFrameColor property determines the frame color for the selected group.

Example

Executing the example requires that repository contains a workspace with the WSP identifier.

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

Sub UserProc;
Var
    MB: IMetabase;
    ws: IWxWorkspace;
    view: IWxView;
    SStyle: IWxSelectionStyle;
Begin
    MB := MetabaseClass.Active;
    // Get workspace
    ws := MB.ItemById("WSP").Edit As IWxWorkspace;
    view := ws.CreateView;
    SStyle := view.SelectionStyle;
    SStyle.GroupFrameVisible := True;
    SStyle.GroupFrameColor := New GxColor.CreateRGB(1200120);
    // Save changes
    (ws As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Workspace;

 
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    ws: IWxWorkspace;
    view: IWxView;
    SStyle: IWxSelectionStyle;
    vGxColor: GxColorClass_2 = 
New GxColorClass_2();
Begin
    MB := Params.Metabase;
    
// Get workspace
    ws := MB.ItemById["WSP"].Edit() As IWxWorkspace;
    view := ws.CreateView();
    SStyle := view.SelectionStyle;
    SStyle.GroupFrameVisible := 
True;
    vGxColor.CreateRGB(
1200120);
    SStyle.GroupFrameColor := vGxColor;
    
// Save changes
    (ws As IMetabaseObject).Save();
End Sub;

After executing the example a frame of the defined color is displayed for the selected object group in a workspace.

See also:

IWxSelectionStyle