protected override void Dispose(bool disposing) { if (disposing) { } __parentShape = null; base.Dispose(disposing); }
public static string ToDebugString(this AbstractShape shape) { if (shape == null) { return("None"); } else { return(shape.ToString()); } }
protected AbstractHandle(PointF location, AbstractShape parent, IPrimitiveProvider primitiveProvider) { if (primitiveProvider == null) { throw new ArgumentNullException(nameof(primitiveProvider)); } __location = location; __parentShape = parent; var rect = primitiveProvider.GetPrimitive <AbstractRectangle>( new PointF(location.X - HANDLE_SIZE, location.Y - HANDLE_SIZE), new SizeF(HANDLE_SIZE * 2 + 1, HANDLE_SIZE * 2 + 1)); rect.DrawModel = DrawModel.Center; InitializePrimaryPrimitiveAndBound(rect, null); CanSelect = false; Visible = false; Styles.HandleStyles.ApplyDefaultPatternTo(rect); }
public LineResizeHandle(PointF location, AbstractShape parent, LineResizeType type, IPrimitiveProvider primitiveProvider) : base(location, parent, primitiveProvider) { Type = type; }
public AnchorHandle(PointF location, AbstractShape parent, string name, IPrimitiveProvider primitiveProvider) : base(location, parent, primitiveProvider) { __lines = new List <Line>(); Name = name; }
public RectResizeHandle(PointF location, AbstractShape parent, CornerType type, IPrimitiveProvider provider) : base(location, parent, provider) { Type = type; }
public BeginTextingEventArgs(RectangleF rect, AbstractShape shape, string textString) { Rect = rect; Shape = shape; TextString = textString; }