private MemoEditViewInfo GetViewInfo(ControlGraphicsInfoArgs info)
        {
            RepositoryItemMyMemoExEdit ri = (info.ViewInfo as ButtonEditViewInfo).Item as RepositoryItemMyMemoExEdit;
            MemoEditViewInfo           vi = new MemoEditViewInfo(ri.Memo);
            Rectangle rec = info.ViewInfo.ContentRect;

            //rec.Offset(0, -2);
            // rec.Inflate(0,2);
            vi.Bounds             = rec;
            vi.EditValue          = info.ViewInfo.DisplayText;
            vi.DefaultBorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            vi.CalcViewInfo(info.Graphics);
            //vi.Item.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            //vi.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            return(vi);
        }
 static MyMemoExEdit()
 {
     RepositoryItemMyMemoExEdit.Register();
 }