C# Class Core2D.Shapes.XGroup

Group shape.
Inheritance: Core2D.Shape.BaseShape
Show file Open project: Core2D/Core2D Class Usage Examples

Public Methods

Method Description
AddConnectorAsInput ( XPoint point ) : void

Adds XPoint to Connectors collection with ShapeStateFlags.Input flag set.

AddConnectorAsNone ( XPoint point ) : void

Adds XPoint to Connectors collection with ShapeStateFlags.None flag set.

AddConnectorAsOutput ( XPoint point ) : void

Adds XPoint to Connectors collection with ShapeStateFlags.Output flag set.

AddShape ( BaseShape shape ) : void

Adds BaseShape to Shapes collection.

Create ( string name ) : XGroup

Creates a new XGroup instance.

Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
GetPoints ( ) : IEnumerable
Group ( string name, IEnumerable shapes, IList source = null ) : XGroup

Creates a new XGroup instance.

Move ( double dx, double dy ) : void
Ungroup ( BaseShape shape, IList source, bool isShapeFromGroup = false ) : void

Ungroup shape.

Ungroup ( IEnumerable shapes, IList source, bool isShapeFromGroup = false ) : void

Ungroup shapes.

XGroup ( ) : System.Collections.Generic

Initializes a new instance of the XGroup class.

Method Details

AddConnectorAsInput() public method

Adds XPoint to Connectors collection with ShapeStateFlags.Input flag set.
public AddConnectorAsInput ( XPoint point ) : void
point XPoint The point object.
return void

AddConnectorAsNone() public method

Adds XPoint to Connectors collection with ShapeStateFlags.None flag set.
public AddConnectorAsNone ( XPoint point ) : void
point XPoint The point object.
return void

AddConnectorAsOutput() public method

Adds XPoint to Connectors collection with ShapeStateFlags.Output flag set.
public AddConnectorAsOutput ( XPoint point ) : void
point XPoint The point object.
return void

AddShape() public method

Adds BaseShape to Shapes collection.
public AddShape ( BaseShape shape ) : void
shape Core2D.Shape.BaseShape The shape object.
return void

Create() public static method

Creates a new XGroup instance.
public static Create ( string name ) : XGroup
name string The group name.
return XGroup

Draw() public method

public Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
renderer Core2D.Renderer.ShapeRenderer
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
return void

GetPoints() public method

public GetPoints ( ) : IEnumerable
return IEnumerable

Group() public static method

Creates a new XGroup instance.
public static Group ( string name, IEnumerable shapes, IList source = null ) : XGroup
name string The group name.
shapes IEnumerable The shapes collection.
source IList The source shapes collection.
return XGroup

Move() public method

public Move ( double dx, double dy ) : void
dx double
dy double
return void

Ungroup() public static method

Ungroup shape.
public static Ungroup ( BaseShape shape, IList source, bool isShapeFromGroup = false ) : void
shape Core2D.Shape.BaseShape The shape instance.
source IList The source shapes collection.
isShapeFromGroup bool The flag indicating whether shape originates from group.
return void

Ungroup() public static method

Ungroup shapes.
public static Ungroup ( IEnumerable shapes, IList source, bool isShapeFromGroup = false ) : void
shapes IEnumerable The shapes collection.
source IList The source shapes collection.
isShapeFromGroup bool The flag indicating whether shapes originate from group.
return void

XGroup() public method

Initializes a new instance of the XGroup class.
public XGroup ( ) : System.Collections.Generic
return System.Collections.Generic