Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用Syncfusion在PdfGrid中旋转单元格文本_C#_Syncfusion - Fatal编程技术网

C# 使用Syncfusion在PdfGrid中旋转单元格文本

C# 使用Syncfusion在PdfGrid中旋转单元格文本,c#,syncfusion,C#,Syncfusion,如何旋转PDF网格标题中的单元格值 我不想旋转图形 是否有方法在PdfGrid中旋转单元格文本而不使用Graphics.RotateTransform 我有以下代码: for (int j = 0; j < dsourceII.Rows.Count; j++) { Main2dGrid.Headers[0].Cells[j+1].Value = dsourceII.Rows[j][1].ToString(); } Main2dGrid.Headers[0].Cells[0].Va

如何旋转PDF网格标题中的单元格值

我不想旋转图形

是否有方法在PdfGrid中旋转单元格文本而不使用Graphics.RotateTransform

我有以下代码:

for (int j = 0; j < dsourceII.Rows.Count; j++)
{
    Main2dGrid.Headers[0].Cells[j+1].Value = dsourceII.Rows[j][1].ToString();
}

Main2dGrid.Headers[0].Cells[0].Value = "";
Main2dGrid.Headers[0].Cells[Main2dGrid.Columns.Count-1].Value = "";
foreach (PdfGridCell Cell in Main2dGrid.Headers[0].Cells)
{
    // Here I need to rotate all the cell value in Header[0], but not my grid

    Cell.StringFormat = STRINGformatRight;
    Cell.Style.Font = Tahoma;
    Cell.Style.Borders.All = PENWhite;
}
for(int j=0;j
我们可以使用带有图形的旋转变换(使用BeginCellEvent)单独旋转PdfGrid标头。有关更多信息,请参阅知识库链接


注意:我为Syncfusion工作。

我们可以使用带有图形的旋转变换,使用BeginCellEvent单独旋转PdfGrid头。有关更多信息,请参阅知识库链接


注意:我为Syncfusion工作。

链接已断开:“很抱歉,该网页可能暂时关闭,或者在处理您的请求时可能出现错误。我们正在处理该网页。请稍后重新加载该网页。”您能否扩展您的答案,使其独立(外部资源仅用于补充目的)?链接已断开:“很抱歉,网页可能暂时关闭,或者在处理您的请求时可能发生错误。”。我们正在努力。请稍后重新加载此页面。“您能否扩展您的答案,使其独立(外部资源仅用于补充目的)?