Class RectangleShape
- Namespace
- HeBianGu.Control.ImagePlayer
- Assembly
- HeBianGu.Control.ImagePlayer.dll
矩形图基类
public class RectangleShape : Shape, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IRectangleStroke
- Inheritance
-
RectangleShape
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
RectangleShape()
无参数构造函数
public RectangleShape()
RectangleShape(RectangleShape)
构造函数
public RectangleShape(RectangleShape rectangle)
Parameters
rectangle
RectangleShape矩形形状
RectangleShape(double, double, double, double)
构造函数
public RectangleShape(double x, double y, double width, double height)
Parameters
RectangleShape(Point, Point)
构造函数
public RectangleShape(Point start, Point end)
Parameters
Properties
Code
public string Code { get; set; }
Property Value
DefiningGeometry
定义模型
protected override Geometry DefiningGeometry { get; }
Property Value
IsSelected
是否被选中
public bool IsSelected { get; }
Property Value
MouseOverStrokeThickness
public double MouseOverStrokeThickness { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
NormalStrokeThickness
public double NormalStrokeThickness { get; set; }
Property Value
Position
左上方点坐标
public Point Position { get; set; }
Property Value
Rect
矩形区域形状
public Rect Rect { get; }
Property Value
RenderedGeometry
渲染模型
public override Geometry RenderedGeometry { get; }
Property Value
SelectedStrokeThickness
public double SelectedStrokeThickness { get; set; }
Property Value
SeletedAndMouseOverStrokeThickness
public double SeletedAndMouseOverStrokeThickness { get; set; }
Property Value
Methods
Clear()
清理图形
public void Clear()
Clear(InkCanvas)
清理图形
public void Clear(InkCanvas canvas)
Parameters
canvas
InkCanvas
Draw(InkCanvas)
绘制图形
public virtual void Draw(InkCanvas canvas)
Parameters
canvas
InkCanvas
SetSelected()
设置选中
public void SetSelected()
Events
Selected
选中改变事件
public event Action<RectangleShape> Selected