IWxView.SelectionStyle

Syntax

SelectionStyle: IWxSelectionStyle;

Description

The SelectionStyle property determines parameters for formatting the selected object in a workspace.

Example

Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ws: IWxWorkspace;
    view: IWxView;
    arrow: IWxArrow;
    ellipse: IWxEllipse;
    SStyle: IWxSelectionStyle;
Begin
    // Get workspace for editing
    ws := UiWorkspace1.WxWorkspace;
    view := ws.CreateView;
    view := ws.Views.Item(0);
    ellipse := ws.CreateEllipse;
    arrow := ws.CreateArrow;
    Arrow.FirstPoint := New GxPointF.Create(1010);
    Arrow.LastPoint := New GxPointF.Create(319);
    ellipse := ws.CreateEllipse;
    SStyle := view.SelectionStyle;
    SStyle.ActivePointColor := GxColor.FromName("Red");
    SStyle.SelectedRotationPointColor := GxColor.FromName("Pink");
    SStyle.SelectionPointStyle := WxSelectionPointStyle.Corners;
    SStyle.SelectionPointSize := 2;
    SStyle.ActiveRotationPointColor := New GxColor.CreateRGB(0128255);
    SStyle.ConnectionPointColor := New GxColor.CreateRGB(01920);
End Sub Button1OnClick;

After executing the example a selection style for objects in a workspace is set.

See also:

IWxView