# ![Logo](https://raw.githubusercontent.com/JamesNK/Newtonsoft.Json/master/Doc/icons/logo.jpg) Json.NET
[![NuGet version (Newtonsoft.Json)](https://img.shields.io/nuget/v/Newtonsoft.Json.svg?style=flat-square)](https://www.nuget.org/packages/Newtonsoft.Json/)
[![Build status](https://dev.azure.com/jamesnk/Public/_apis/build/status/JamesNK.Newtonsoft.Json?branchName=master)](https://dev.azure.com/jamesnk/Public/_build/latest?definitionId=8)
Json.NET is a popular high-performance JSON framework for .NET
## Serialize JSON
```csharp
Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };
string json = JsonConvert.SerializeObject(product);
// {
// "Name": "Apple",
// "Expiry": "2008-12-28T00:00:00",
// "Sizes": [
// "Small"
// ]
// }
```
## Deserialize JSON
```csharp
string json = @"{
'Name': 'Bad Boys',
'ReleaseDate': '1995-4-7T00:00:00',
'Genres': [
'Action',
'Comedy'
]
}";
Movie m = JsonConvert.DeserializeObject<Movie>(json);
string name = m.Name;
// Bad Boys
```
## LINQ to JSON
```csharp
JArray array = new JArray();
array.Add("Manual text");
array.Add(new DateTime(2000, 5, 23));
JObject o = new JObject();
o["MyArray"] = array;
string json = o.ToString();
// {
// "MyArray": [
// "Manual text",
// "2000-05-23T00:00:00"
// ]
// }
```
## Links
- [Homepage](https://www.newtonsoft.com/json)
- [Documentation](https://www.newtonsoft.com/json/help)
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Contributing Guidelines](https://github.com/JamesNK/Newtonsoft.Json/blob/master/CONTRIBUTING.md)
- [License](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net)
没有合适的资源?快使用搜索试试~ 我知道了~
使用Microsoft.Office.Interop.PowerPoint调用代码操作PPT
共120个文件
cs:22个
dll:20个
cache:16个
需积分: 5 11 下载量 128 浏览量
2023-06-19
15:28:50
上传
评论
收藏 9.35MB ZIP 举报
温馨提示
代码能够操作ppt放映,翻页,调用画笔,设置画笔颜色等功能,可获取每页PPT截图,可获取小节信息,PPT备注信息 Application application = new Microsoft.Office.Interop.PowerPoint.Application(); Presentation presentation = application.Presentations.Open(path, MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoTrue);//打开ppt application.Visible = MsoTriState.msoTrue; presentation.SlideShowSettings.ShowPresenterView = MsoTriState.msoFalse;//不开启演示者视图 presentation.SlideShowSettings.Run();//放映ppt presentation.SlideShowWindow.View.Next();//下一页
资源推荐
资源详情
资源评论
收起资源包目录
使用Microsoft.Office.Interop.PowerPoint调用代码操作PPT (120个子文件)
DsoFramerOffice.csprojAssemblyReference.cache 42KB
PowerPoint.csproj.AssemblyReference.cache 9KB
DesignTimeResolveAssemblyReferencesInput.cache 8KB
DesignTimeResolveAssemblyReferences.cache 2KB
DsoFramerOffice.csproj.GenerateResource.cache 1KB
DsoFramerOffice.csproj.GenerateResource.cache 1KB
DsoFramerOffice.csproj.ResolveComReference.cache 774B
DsoFramerOffice.csproj.ResolveComReference.cache 725B
PowerPoint.csproj.ResolveComReference.cache 369B
PowerPoint.csproj.GenerateResource.cache 218B
DsoFramerOffice.csproj.CoreCompileInputs.cache 42B
DsoFramerOffice.csproj.CoreCompileInputs.cache 42B
PowerPoint.csproj.CoreCompileInputs.cache 42B
DsoFramerOffice.csproj.AssemblyReference.cache 11B
DsoFramerOffice.csproj.AssemblyReference.cache 11B
PowerPoint.csproj.SuggestedBindingRedirects.cache 0B
packages.config 332B
App.config 184B
PowerPoint.exe.config 184B
PowerPoint.csproj.CopyComplete 0B
DsoFramerOffice.csproj.CopyComplete 0B
ToolWin.Designer.cs 19KB
ApplicationUtil.cs 9KB
PPT.cs 7KB
Main.Designer.cs 3KB
ToolWin.cs 3KB
Resources.Designer.cs 3KB
ImageWin.cs 3KB
ByteHelper.cs 2KB
ImageWin.Designer.cs 2KB
AssemblyInfo.cs 1KB
Settings.Designer.cs 1KB
Main.cs 1KB
Program.cs 521B
PresentationDTO.cs 473B
SlideDTO.cs 444B
SectionDTO.cs 432B
.NETFramework,Version=v4.6.1.AssemblyAttributes.cs 214B
.NETFramework,Version=v4.6.1.AssemblyAttributes.cs 214B
.NETFramework,Version=v4.8.AssemblyAttributes.cs 210B
TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs 0B
TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs 0B
TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs 0B
PowerPoint.csproj 7KB
wpsapi.dll 9.01MB
Kingsoft.Office.Interop.Wpsapi.dll 933KB
Newtonsoft.Json.dll 696KB
Newtonsoft.Json.dll 695KB
Newtonsoft.Json.dll 695KB
Newtonsoft.Json.dll 689KB
Newtonsoft.Json.dll 683KB
Newtonsoft.Json.dll 665KB
Newtonsoft.Json.dll 571KB
Newtonsoft.Json.dll 567KB
Newtonsoft.Json.dll 504KB
Office.dll 447KB
Office.dll 447KB
Microsoft.Office.Interop.PowerPoint.dll 391KB
Microsoft.Office.Interop.PowerPoint.dll 391KB
Microsoft.Office.Interop.PowerPoint.dll 391KB
Interop.WpsApiEx.dll 69KB
Interop.DSOFramer.dll 22KB
AxInterop.DSOFramer.dll 20KB
Properties.Resources.Designer.cs.dll 4KB
PowerPoint.exe 37KB
PowerPoint.exe 37KB
DsoFramerOffice.exe 27KB
storage.ide 628KB
storage.ide-shm 32KB
storage.ide-wal 3.94MB
read.lock 0B
db.lock 0B
README.md 2KB
LICENSE.md 1KB
Newtonsoft.Json.13.0.3.nupkg 2.33MB
Microsoft.Office.Interop.PowerPoint.15.0.4420.1018.nupkg 271KB
MicrosoftOfficeCore.15.0.0.nupkg 157KB
.signature.p7s 24KB
.signature.p7s 9KB
.signature.p7s 9KB
PowerPoint.pdb 88KB
PowerPoint.pdb 88KB
DsoFramerOffice.pdb 68KB
packageIcon.png 9KB
测试ppt.pptx 819KB
DsoFramerOffice.Form1.resources 180B
DsoFramerOffice.Properties.Resources.resources 180B
DsoFramerOffice.Form2.resources 180B
DsoFramerOffice.Main.resources 180B
PowerPoint.Main.resources 180B
DsoFramerOffice.Form1.resources 180B
PowerPoint.Properties.Resources.resources 180B
PowerPoint.ToolWin.resources 180B
PowerPoint.ImageWin.resources 180B
ToolWin.resx 6KB
ImageWin.resx 6KB
Main.resx 6KB
Resources.resx 5KB
Settings.settings 249B
PowerPoint.sln 1KB
共 120 条
- 1
- 2
资源评论
工作很多年的小白
- 粉丝: 15
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功