Table of Contents

Class SelectShapeLayer

Namespace
HeBianGu.Control.LayerBox
Assembly
HeBianGu.Control.LayerBox.dll
public class SelectShapeLayer : ShapeLayer, IMouseLayer, ILayer
Inheritance
SelectShapeLayer
Implements
Inherited Members
Extension Methods

Constructors

SelectShapeLayer()

public SelectShapeLayer()

Fields

HitHandleModeProperty

public static readonly DependencyProperty HitHandleModeProperty

Field Value

DependencyProperty

HitShapeModeProperty

public static readonly DependencyProperty HitShapeModeProperty

Field Value

DependencyProperty

HitShapePointProperty

public static readonly DependencyProperty HitShapePointProperty

Field Value

DependencyProperty

MouseOverHandleProperty

public static readonly DependencyProperty MouseOverHandleProperty

Field Value

DependencyProperty

OffsetUnitProperty

public static readonly DependencyProperty OffsetUnitProperty

Field Value

DependencyProperty

RotateUnitProperty

public static readonly DependencyProperty RotateUnitProperty

Field Value

DependencyProperty

SelectedHandleProperty

public static readonly DependencyProperty SelectedHandleProperty

Field Value

DependencyProperty

SelectedShapeProperty

public static readonly DependencyProperty SelectedShapeProperty

Field Value

DependencyProperty

SelectedShapesProperty

public static readonly DependencyProperty SelectedShapesProperty

Field Value

DependencyProperty

UseBorderProperty

public static readonly DependencyProperty UseBorderProperty

Field Value

DependencyProperty

UseDoubleClickRectToProperty

public static readonly DependencyProperty UseDoubleClickRectToProperty

Field Value

DependencyProperty

UseDragToProperty

public static readonly DependencyProperty UseDragToProperty

Field Value

DependencyProperty

Properties

ClearCommand

public DisplayerCommand ClearCommand { get; }

Property Value

DisplayerCommand

DeleteCommand

public DisplayerCommand DeleteCommand { get; }

Property Value

DisplayerCommand

DownOffsetCommand

public DisplayerCommand DownOffsetCommand { get; }

Property Value

DisplayerCommand

HitHandleMode

public HitMode HitHandleMode { get; set; }

Property Value

HitMode

HitShapeMode

public HitMode HitShapeMode { get; set; }

Property Value

HitMode

HitShapePoint

public Tuple<Action<IDrawing>, Point, object> HitShapePoint { get; set; }

Property Value

Tuple<Action<IDrawing>, Point, object>

LeftOffsetCommand

public DisplayerCommand LeftOffsetCommand { get; }

Property Value

DisplayerCommand

MouseOverHandle

public IHandle MouseOverHandle { get; set; }

Property Value

IHandle

OffsetUnit

public double OffsetUnit { get; set; }

Property Value

double

RectToCommand

public DisplayerCommand RectToCommand { get; }

Property Value

DisplayerCommand

RedoCommand

public DisplayerCommand RedoCommand { get; }

Property Value

DisplayerCommand

RightOffsetCommand

public DisplayerCommand RightOffsetCommand { get; }

Property Value

DisplayerCommand

RotateAnticlockCommand

public DisplayerCommand RotateAnticlockCommand { get; }

Property Value

DisplayerCommand

RotateClockwiseCommand

public DisplayerCommand RotateClockwiseCommand { get; }

Property Value

DisplayerCommand

RotateUnit

public double RotateUnit { get; set; }

Property Value

double

SelectAllCommand

public DisplayerCommand SelectAllCommand { get; }

Property Value

DisplayerCommand

SelectNoneCommand

public DisplayerCommand SelectNoneCommand { get; }

Property Value

DisplayerCommand

SelectedHandle

public IHandle SelectedHandle { get; set; }

Property Value

IHandle

SelectedShape

public IShape SelectedShape { get; set; }

Property Value

IShape

SelectedShapes

public ObservableCollection<IShape> SelectedShapes { get; set; }

Property Value

ObservableCollection<IShape>

UndoCommand

public DisplayerCommand UndoCommand { get; }

Property Value

DisplayerCommand

UpOffsetCommand

public DisplayerCommand UpOffsetCommand { get; }

Property Value

DisplayerCommand

UseBorder

public bool UseBorder { get; set; }

Property Value

bool

UseDoubleClickRectTo

public bool UseDoubleClickRectTo { get; set; }

Property Value

bool

UseDragTo

public bool UseDragTo { get; set; }

Property Value

bool

Methods

Draw(IDrawing)

public override void Draw(IDrawing dc)

Parameters

dc IDrawing

Hit(Point)

public Tuple<Action<IDrawing>, Point, object> Hit(Point point)

Parameters

point Point

Returns

Tuple<Action<IDrawing>, Point, object>

HitHandle(Point, LayerView)

public IHandle HitHandle(Point devicePoint, LayerView layerView)

Parameters

devicePoint Point
layerView LayerView

Returns

IHandle

HitShape(Point)

public Tuple<Action<IDrawing>, Point, object> HitShape(Point point)

Parameters

point Point

Returns

Tuple<Action<IDrawing>, Point, object>

OnDragMouseMove(object, DragMouseEventArgs)

public override void OnDragMouseMove(object sender, DragMouseEventArgs e)

Parameters

sender object
e DragMouseEventArgs

OnMouseDown(object, MouseButtonEventArgs)

public override void OnMouseDown(object sender, MouseButtonEventArgs e)

Parameters

sender object
e MouseButtonEventArgs

OnShapesChanged()

protected override void OnShapesChanged()