Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/275.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.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# Aspose单元格:如何向现有Listobject添加一个名为(标题名)的新列?_C#_Aspose_Aspose Cells - Fatal编程技术网

C# Aspose单元格:如何向现有Listobject添加一个名为(标题名)的新列?

C# Aspose单元格:如何向现有Listobject添加一个名为(标题名)的新列?,c#,aspose,aspose-cells,C#,Aspose,Aspose Cells,在这种情况下,我需要向现有ListObject添加一个新列,并更新新列标题值。有人能帮忙吗 我正在使用aspose7.4.2.0 提前感谢。我尝试在下面的代码中添加一个新列,并更新了名称。 我希望这是正确的 ListObject tableObject = GetTableObject(tableName); tableObject.Resize(tableObject.StartRow, tableObject.StartColumn, tableObject.EndRow, tabl

在这种情况下,我需要向现有ListObject添加一个新列,并更新新列标题值。有人能帮忙吗

我正在使用aspose7.4.2.0


提前感谢。

我尝试在下面的代码中添加一个新列,并更新了名称。 我希望这是正确的

ListObject tableObject = GetTableObject(tableName);
tableObject.Resize(tableObject.StartRow, tableObject.StartColumn,     tableObject.EndRow, tableObject.EndColumn + 1, true);
tableObject.ListColumns[tableObject.EndColumn - 1].Name = "UpdatedName";