Table of Contents

Class HandleBase

Namespace
HeBianGu.Control.LayerBox
Assembly
HeBianGu.Control.LayerBox.dll
public abstract class HandleBase : DisplayerViewModelBase, INotifyPropertyChanged, IDisplayer, IHandle
Inheritance
HandleBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

HandleBase(Point)

public HandleBase(Point position)

Parameters

position Point

Properties

Bound

public virtual Rect Bound { get; }

Property Value

Rect

Fill

public Brush Fill { get; set; }

Property Value

Brush

IsVisible

public bool IsVisible { get; set; }

Property Value

bool

Length

public double Length { get; set; }

Property Value

double

Position

public Point Position { get; set; }

Property Value

Point

Stroke

public Brush Stroke { get; set; }

Property Value

Brush

StrokeThickness

public double StrokeThickness { get; set; }

Property Value

double

Methods

Commit(Point)

public virtual bool Commit(Point to)

Parameters

to Point

Returns

bool

Draw(IDrawing)

public virtual void Draw(IDrawing dc)

Parameters

dc IDrawing

DrawDragTo(IDrawing, Point)

public virtual void DrawDragTo(IDrawing drawing, Point to)

Parameters

drawing IDrawing
to Point

GetDragToPen(IDrawing)

protected virtual Pen GetDragToPen(IDrawing dc)

Parameters

dc IDrawing

Returns

Pen

GetGeometry(IDrawing)

public virtual Geometry GetGeometry(IDrawing drawing)

Parameters

drawing IDrawing

Returns

Geometry