IWxSelectionStyle.SelectionPointStyle

Syntax

SelectionPointStyle: WxSelectionPointStyle;

SelectionPointStyle: Prognoz.Platform.Interop.Andy.WxSelectionPointStyle;

Description

The SelectionPointStyle property determines the type of object selection. Actually, it determines the number of points, which will be displayed when an object is selected in a workspace.

Example

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

Add links to the Andy, 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.SelectionPointStyle := WxSelectionPointStyle.Corners;
    // Save changes
    (ws As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Workspace;

 
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    ws: IWxWorkspace;
    view: IWxView;
    SStyle: IWxSelectionStyle;
Begin
    MB := Params.Metabase;
    
// Get workspace
    ws := MB.ItemById["WSP"].Edit() As IWxWorkspace;
    view := ws.CreateView();
    SStyle := view.SelectionStyle;
    SStyle.SelectionPointStyle := WxSelectionPointStyle.wspsCorners;
    
// Save changes
    (ws As IMetabaseObject).Save();
End Sub;

After executing the example four points for the selection type are set.

See also:

IWxSelectionStyle