public ItemRectangle Serialize(XRectangle rectangle) { return(new ItemRectangle() { Id = rectangle.Id, X = _blockHelper.GetLeft(rectangle), Y = _blockHelper.GetTop(rectangle), Width = _blockHelper.GetWidth(rectangle), Height = _blockHelper.GetHeight(rectangle), IsFilled = _blockHelper.IsTransparent(rectangle), Stroke = _blockHelper.GetStroke(rectangle), Fill = _blockHelper.GetFill(rectangle) }); }