Multiple Formats in one cell using c#

后端 未结 3 832
既然无缘
既然无缘 2021-01-14 01:53

I want to have mutple format types in one cell in my workbook. For example I want my A1 cell to display \" Name: Aaron Kruger \". When I programmatically

3条回答
  •  轮回少年
    2021-01-14 02:26

    Range rng1 = ws.getRange("A1","E10");
    for(int i=0;i<10;i++)
    {
        Range rngTst=rng.cells[i,i];
        for(int j=0;j

    or

    int sFirstFoundAddress = currentFind.FormulaR1C1Local.ToString().IndexOf("NOT FOR CIRCULATION ");
    
    get_Range(excel.Cells[1, 1],
        excel.Cells[1, dtData.Columns.Count])
            .get_Characters(sFirstFoundAddress, 20).Font.Color =
                System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Red);
    

提交回复
热议问题