IWxSelectionStyle.ActivePointColor

Syntax

ActivePointColor: IGxColor;

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

Description

The ActivePointColor property determines the point color of the last selected object.

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;
    Wsp: IWxWorkspace;
    View: IWxView;
    SStyle: IWxSelectionStyle;
Begin
    MB := MetabaseClass.Active;
    // Get workspace
    Wsp := MB.ItemById("WSP").Edit As IWxWorkspace;
    view := Wsp.CreateView;
    SStyle := View.SelectionStyle;
    SStyle.ActivePointColor := GxColor.FromName("Blue");
    // Save changes
    (Wsp 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;
    Wsp: IWxWorkspace;
    View: IWxView;
    SStyle: IWxSelectionStyle;
    Color: GxColorClassClass = 
New GxColorClassClass();
Begin
    MB := Params.Metabase;
    
// Get workspace
    Wsp := MB.ItemById["WSP"].Edit() As IWxWorkspace;
    view := Wsp.CreateView();
    SStyle := View.SelectionStyle;
    SStyle.ActivePointColor := Color.FromName(
"Blue");
    
// Save changes
    (Wsp As IMetabaseObject).Save();
End Sub;

After executing the example the point color for the last selected object is set.

See also:

IWxSelectionStyle