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

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

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

Метод Описание
BindText ( ImmutableArray db, XRecord r ) : string

Bind properties or data record to XText.Text property.

Create ( XPoint topLeft, XPoint bottomRight, ShapeStyle style, BaseShape point, string text, bool isStroked = true, string name = "" ) : XText

Creates a new XText instance.

Create ( double x, double y, ShapeStyle style, BaseShape point, string text, bool isStroked = true, string name = "" ) : XText

Creates a new XText instance.

Create ( double x1, double y1, double x2, double y2, ShapeStyle style, BaseShape point, string text, bool isStroked = true, string name = "" ) : XText

Creates a new XText instance.

Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
GetPoints ( ) : IEnumerable
Move ( double dx, double dy ) : void

Приватные методы

Метод Описание
TryToBind ( ImmutableArray db, string propertyName, string &value ) : bool

Try binding properties array to one of XText shape properties.

TryToBind ( XRecord r, string columnName, string &value ) : bool

Try binding data record to XText.Text shape property containing column name.

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

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

Bind properties or data record to XText.Text property.
public BindText ( ImmutableArray db, XRecord r ) : string
db ImmutableArray The properties database used for binding.
r Core2D.Data.Database.XRecord The external data record used for binding.
Результат string

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

Creates a new XText instance.
public static Create ( XPoint topLeft, XPoint bottomRight, ShapeStyle style, BaseShape point, string text, bool isStroked = true, string name = "" ) : XText
topLeft XPoint The corner point.
bottomRight XPoint The corner point.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
text string The text string.
isStroked bool The flag indicating whether shape is stroked.
name string The shape name.
Результат XText

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

Creates a new XText instance.
public static Create ( double x, double y, ShapeStyle style, BaseShape point, string text, bool isStroked = true, string name = "" ) : XText
x double The X coordinate of and corner points.
y double The Y coordinate of and corner points.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
text string The text string.
isStroked bool The flag indicating whether shape is stroked.
name string The shape name.
Результат XText

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

Creates a new XText instance.
public static Create ( double x1, double y1, double x2, double y2, ShapeStyle style, BaseShape point, string text, bool isStroked = true, string name = "" ) : XText
x1 double The X coordinate of corner point.
y1 double The Y coordinate of corner point.
x2 double The X coordinate of corner point.
y2 double The Y coordinate of corner point.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
text string The text string.
isStroked bool The flag indicating whether shape is stroked.
name string The shape name.
Результат XText

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

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

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