


C# uses Free Spire.Presentation to insert and edit PPT and delete tables
The editor found that using the .NET component - Free Spire.Presentation, adding the product DLL file in C# can easily and quickly implement operations such as table insertion, editing and deletion of presentations. Please refer to the specific implementation code below. Article Bar
In modern study and office, we are often exposed to the use of forms, such as various documents, statements, accounts, etc. It is also inevitable to apply various data tables in PPT presentations. For inserting tables into PPT, I found a new method, but I used a free .NET component-Free Spire.Presentation. Adding the product DLL file in C# can easily and quickly implement presentations. Table insertion, editing and deletion operations. If necessary, you can download it at the following URL: https://www.e-iceblue.cn/Downloads/Free-Spire-Presentation-NET.html
1. Insert table
Step 1: Create a PowerPoint document
Presentation ppt = new Presentation(); ppt.SlideSize.Type = SlideSizeType.Screen16x9;
Step 2: Initialize an ITable instance and specify the position, number of rows and columns number, row height and column width Declare and initialize a String[,] array The following PPT document effect
2. Delete table rows and columns
double[] widths = new double[] { 100, 100, 100, 100, 100 }; double[] heights = new double[] { 15, 15, 15, 15, 15 }; ITable table = ppt.Slides[0].Shapes.AppendTable(80, 80, widths, heights);
table.StylePreset = TableStylePreset.LightStyle1Accent2;
3. Delete the table
Step 1: Initialize a Presentation instance and load a PowerPoint document
string[,] data = new string[,] { {"排名","姓名", "销售额","回款额","工号"}, {"1","李彪","18270","18270","0011"}, {"2","李娜","18105","18105","0025"}, {"3","张丽","17987","17987","0008"}, {"4","黄艳","17790","17790","0017"}, };
Step 2: Initialize a List object, the element type is IShape table graphic and add it to the List #Step 5: Save the document
ppt.SaveToFile("创建表格.pptx", FileFormat.Pptx2010);
Summary
The above is the detailed content of C# uses Free Spire.Presentation to insert and edit PPT and delete tables. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



DALL-E 3 was officially introduced in September of 2023 as a vastly improved model than its predecessor. It is considered one of the best AI image generators to date, capable of creating images with intricate detail. However, at launch, it was exclus

In Linux systems, the free command is an important system tool used to monitor system memory usage. It provides basic usage to view information such as total memory, used amount, and available amount. In addition, there are some advanced uses, such as displaying detailed memory information, unit conversion, and real-time monitoring of memory. Basic usage of the free command: The basic syntax of the free command is as follows: free [options] Here are some commonly used options: -h: Display the memory size in a human-readable manner. -b: Display memory size in bytes. -k: Display memory size in kilobytes. -m: Display memory size in megabytes. -g: Display memory size in gigabytes. Sample Code: Let’s go through the sample code

The AI-enabled Deepin Linux distro has just received its latest update, dubbed V23 RC2. This version of Deepin comes with a number of package updates and new features. But it's not all about the features; the look and feel are the main spotlight of t

In Linux systems, there are various commands you can use to check your system's memory usage to help identify potential memory exhaustion issues. Here are five commonly used commands that can be used to check the memory usage of Linux systems with detailed instructions: free command: The free command is used to display the usage and idle status of system memory. Run the free command to get the total memory, used memory, free memory, and cache and buffer usage. Command example: free -h, this command will display memory usage in human-readable format. top command: The top command is a utility that dynamically monitors system resources, including memory usage. After running the top command, you can view the processes that occupy the most memory in the system and the

In Linux, free is a built-in command to check the memory usage status. It can display the usage of system physical memory, virtual memory (swap partition), shared memory and system cache. The syntax is "free [option]"; the output of the free command Very similar to the memory part of the top command. Linuxfree command: Check the memory usage status The free command is used to display the system memory status, including the usage of system physical memory, virtual memory (swap partition), shared memory and system cache. Its output is very similar to the memory part of the top command. The basic format of the free command is as follows: #free [options] Table 1 lists the commonly used options of this command and their respective meanings. Table 1f

For many gamers, next month marks the beginning of this year’s gaming season, even though fall is still a few more weeks away. Fittingly, PlayStation owners with an active PS Plus subscription will soon be able to grab three games for their PlayStati

Samsung's Odyssey G9 gaming monitor range offers some of the best — and most expensive— high-refresh OLED and mini-LED gaming monitors around. Fortunately, a current sale on Samsung's site has brought those exorbitant prices down by as much as 46%. T

Hero of the Kingdom II is an adventure game with RPG elements in which players take on the role of a simple farmer who lives with his sister in a quiet village. But the idyll is soon disturbed by pirate raids, whereupon they set out to save the kingd
