コード例 #1
0
ファイル: BlockSerializer.cs プロジェクト: nagyistge/Sheet
 public ItemText Serialize(XText text)
 {
     return(new ItemText()
     {
         Id = text.Id,
         X = _blockHelper.GetLeft(text),
         Y = _blockHelper.GetTop(text),
         Width = _blockHelper.GetWidth(text),
         Height = _blockHelper.GetHeight(text),
         Text = _blockHelper.GetText(text),
         HAlign = _blockHelper.GetHAlign(text),
         VAlign = _blockHelper.GetVAlign(text),
         Size = _blockHelper.GetSize(text),
         Backgroud = _blockHelper.GetBackground(text),
         Foreground = _blockHelper.GetForeground(text)
     });
 }