3

有谁知道如何使用Sharpkml 创建子文件夹或文档?我目前有一个文件夹,其中包含一些文档,但我无法添加文件夹。如果有人有想法就好了。

4

1 回答 1

0

这对我有用:

// Create the Kml and initialise its root document.
var kml = new Kml();
var document = new Document { Name = "My Document", Open = true };
kml.Feature = document;

// Add a folder.
var folder = new Folder { Id = "data-layers", Name = "Data Layers" };
document.AddFeature(folder);
于 2021-08-20T00:48:36.373 回答