C# Class Core2D.Shapes.XGroup

Group shape.
Inheritance: Core2D.Shape.BaseShape
Afficher le fichier Open project: Core2D/Core2D Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

AddConnectorAsNone() public méthode

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

AddConnectorAsOutput() public méthode

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

AddShape() public méthode

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

Create() public static méthode

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

Draw() public méthode

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
Résultat void

GetPoints() public méthode

public GetPoints ( ) : IEnumerable
Résultat IEnumerable

Group() public static méthode

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.
Résultat XGroup

Move() public méthode

public Move ( double dx, double dy ) : void
dx double
dy double
Résultat void

Ungroup() public static méthode

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.
Résultat void

Ungroup() public static méthode

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.
Résultat void

XGroup() public méthode

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