Hello
I have found an issue with deleting rows where one of the cells is spanning multiple rows as a merged cell.
I am using spire 2.9
trying to remove the bottom 2 rows on this will throw an exception.
table?.TableRows.RemoveAt(table.TableRows.Count-1, false);
table?.TableRows.RemoveAt(table.TableRows.Count - 1, false);
If i use "true" instead of false, it does not fail, but it will remove all 3 rows affected by the merged cell. This is not what i need.
In powerpoint it is possible to delete just a single row, even if one of the cells are part of a merged cell.
Does this feature exist in spire, and if so, how do it do it?
I have attached a project showcasing this issue.
Exception stacktrace:
Spire.Presentation.DocumentEditException was unhandled
HResult=-2146233088
Message=Outside row.
Source=Spire.Presentation
StackTrace:
ved Spire.Presentation.Collections.RowList.RemoveAt(Int32 firstRowIndex, Boolean withAttachedRows)
ved SpireTest.Program.Test() i C:\Projects\spiretest\SpireTest\Program.cs:linje 38
ved SpireTest.Program.Main() i C:\Projects\spiretest\SpireTest\Program.cs:linje 23
ved System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
ved System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
ved Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ThreadHelper.ThreadStart_Context(Object state)
ved System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()
InnerException: