Skip to content

Commit 042b596

Browse files
committed
add update text case example.
1 parent 9aec00f commit 042b596

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using Aspose.Cells.Cloud.SDK.Api;
2+
using Aspose.Cells.Cloud.SDK.Model;
3+
using Aspose.Cells.Cloud.SDK.Request;
4+
using FileInfo = Aspose.Cells.Cloud.SDK.Model.FileInfo;
5+
6+
public static class ExampleBlog_TextProcessing_WordCase
7+
{
8+
public static void Run()
9+
{
10+
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
11+
var request = new PostUpdateWordCaseRequest
12+
{
13+
wordCaseOptions = new WordCaseOptions
14+
{
15+
DataSource = new DataSource { DataSourceType = "RequestFiles" },
16+
FileInfo = new FileInfo
17+
{
18+
Filename = "BookText.xlsx",
19+
FileContent = System.Convert.ToBase64String(System.IO.File.ReadAllBytes("BookText.xlsx"))
20+
},
21+
WordCaseType ="",
22+
ScopeOptions = new ScopeOptions
23+
{
24+
Scope = "SelectionOlny",
25+
ScopeItems = new System.Collections.Generic.List<ScopeItem> {
26+
new ScopeItem {
27+
WorksheetName = "Sales",
28+
Ranges = new System.Collections.Generic.List<string> { "B1:B3"}
29+
} }
30+
}
31+
}
32+
};
33+
cellsApi.PostUpdateWordCase(request);
34+
}
35+
}

0 commit comments

Comments
 (0)