Ejemplo n.º 1
0
        public int CalcHeight(DevExpress.Utils.Drawing.GraphicsCache cache, int width)
        {
            RepositoryItemMyButtonEdit ri = (Item as RepositoryItemMyButtonEdit);
            RichTextEditViewInfo       vi = new RichTextEditViewInfo(ri.RichEdit);

            vi.EditValue = this.EditValue;
            return(vi.CalcHeight(width) + 6);
        }
Ejemplo n.º 2
0
 private void logView_MeasurePreviewHeight(object sender, RowHeightEventArgs e)
 {
     using (RichTextEditViewInfo vi = new RichTextEditViewInfo(emailLogRenderer.Value)) {
         var view  = ((GridView)sender);
         var email = (AdReminderEmail)view.GetRow(e.RowHandle);
         vi.LoadText(email.EmailSource);
         e.RowHeight = vi.CalcHeight(((GridViewInfo)view.GetViewInfo()).CalcRowPreviewWidth(e.RowHandle) - 1) + 2;
     }
 }
Ejemplo n.º 3
0
 private void logView_MeasurePreviewHeight(object sender, RowHeightEventArgs e)
 {
     using (RichTextEditViewInfo vi = new RichTextEditViewInfo(emailLogRenderer.Value)) {
         var view = ((GridView)sender);
         var email = (AdReminderEmail)view.GetRow(e.RowHandle);
         vi.LoadText(email.EmailSource);
         e.RowHeight = vi.CalcHeight(((GridViewInfo)view.GetViewInfo()).CalcRowPreviewWidth(e.RowHandle) - 1) + 2;
     }
 }