小编Sac*_*ith的帖子

如何在C#中将时区作为字符串?

我需要以下面的格式获得PC的时区.

(UTC + 07:00)曼谷,河内,雅加达

我怎么能把它作为一个字符串?

c# timezone datetime

4
推荐指数
1
解决办法
4010
查看次数

如何在C#中获取itextSharp表格单元格的高度?

我想获得跟随细胞的高度.

cell_logo

cell_title

cell_version

cell_dateTime

cell_appVersion

但是cell_name.Height返回0.我怎样才能得到这些细胞的实际高度?

PdfPTable table = new PdfPTable(1);
        table.TotalWidth = doc.PageSize.Width - doc.LeftMargin - doc.RightMargin;            
        table.LockedWidth = true;        

        PdfPCell cell_logo = new PdfPCell(imgLog);
        cell_logo.HorizontalAlignment = 1;
        cell_logo.BackgroundColor = new BaseColor(System.Drawing.Color.White);
        cell_logo.PaddingBottom = 20;
        cell_logo.PaddingTop = 50;

        PdfPCell cell_title = new PdfPCell(docName);
        cell_title.HorizontalAlignment = 1;
        cell_title.BackgroundColor = new BaseColor(System.Drawing.Color.White);
        cell_title.PaddingBottom = 50;

        PdfPCell cell_versions = new PdfPCell(ssVersions);
        cell_versions.BackgroundColor = new BaseColor(System.Drawing.Color.White);            
        cell_versions.PaddingTop = 5;
        cell_versions.PaddingBottom = 5;

        PdfPCell cell_dateTime = new PdfPCell(time);
        cell_dateTime.BackgroundColor …
Run Code Online (Sandbox Code Playgroud)

c# pdf height cell itextsharp

2
推荐指数
1
解决办法
3142
查看次数

标签 统计

c# ×2

cell ×1

datetime ×1

height ×1

itextsharp ×1

pdf ×1

timezone ×1