C# Класс Core2D.Shapes.XGroup

Group shape.
Наследование: Core2D.Shape.BaseShape
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddConnectorAsInput() публичный Метод

Adds XPoint to Connectors collection with ShapeStateFlags.Input flag set.
public AddConnectorAsInput ( XPoint point ) : void
point XPoint The point object.
Результат void

AddConnectorAsNone() публичный Метод

Adds XPoint to Connectors collection with ShapeStateFlags.None flag set.
public AddConnectorAsNone ( XPoint point ) : void
point XPoint The point object.
Результат void

AddConnectorAsOutput() публичный Метод

Adds XPoint to Connectors collection with ShapeStateFlags.Output flag set.
public AddConnectorAsOutput ( XPoint point ) : void
point XPoint The point object.
Результат void

AddShape() публичный Метод

Adds BaseShape to Shapes collection.
public AddShape ( BaseShape shape ) : void
shape Core2D.Shape.BaseShape The shape object.
Результат void

Create() публичный статический Метод

Creates a new XGroup instance.
public static Create ( string name ) : XGroup
name string The group name.
Результат XGroup

Draw() публичный Метод

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
Результат void

GetPoints() публичный Метод

public GetPoints ( ) : IEnumerable
Результат IEnumerable

Group() публичный статический Метод

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.
Результат XGroup

Move() публичный Метод

public Move ( double dx, double dy ) : void
dx double
dy double
Результат void

Ungroup() публичный статический Метод

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.
Результат void

Ungroup() публичный статический Метод

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.
Результат void

XGroup() публичный Метод

Initializes a new instance of the XGroup class.
public XGroup ( ) : System.Collections.Generic
Результат System.Collections.Generic