Table of Contents

Interface IShape

Namespace
HeBianGu.Control.LayerBox
Assembly
HeBianGu.Control.LayerBox.dll
public interface IShape : ICloneable
Inherited Members
Extension Methods

Properties

Bound

Rect Bound { get; }

Property Value

Rect

Center

Point Center { get; }

Property Value

Point

Commands

ObservableCollection<ICommand> Commands { get; }

Property Value

ObservableCollection<ICommand>

Dashes

DoubleCollection Dashes { get; set; }

Property Value

DoubleCollection

Fill

Brush Fill { get; set; }

Property Value

Brush

Locked

bool Locked { get; set; }

Property Value

bool

Name

string Name { get; }

Property Value

string

Stroke

Brush Stroke { get; set; }

Property Value

Brush

StrokeThickness

double StrokeThickness { get; set; }

Property Value

double

Methods

CanDraw(LayerView)

bool CanDraw(LayerView layerView)

Parameters

layerView LayerView

Returns

bool

Clear()

void Clear()

Draw(IDrawing)

void Draw(IDrawing drawing)

Parameters

drawing IDrawing

Draw(IDrawing, Pen, Brush)

void Draw(IDrawing dc, Pen pen, Brush fill)

Parameters

dc IDrawing
pen Pen
fill Brush

GetPen(IDrawing)

Pen GetPen(IDrawing drawing)

Parameters

drawing IDrawing

Returns

Pen

IsVaild()

bool IsVaild()

Returns

bool

Offset(Vector)

void Offset(Vector v)

Parameters

v Vector

Reflect(Point, double)

void Reflect(Point point, double angle)

Parameters

point Point
angle double

Rotate(double)

void Rotate(double angle)

Parameters

angle double