【问题标题】:How to create child folders or documents with sharpkml如何使用 sharpkml 创建子文件夹或文档
【发布时间】:2017-08-07 02:50:00
【问题描述】:

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

【问题讨论】:

    标签: kml sharpkml


    【解决方案1】:

    这对我有用:

    // 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);
    

    【讨论】:

      猜你喜欢
      • 2020-05-27
      • 2021-05-27
      • 2013-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-07
      • 1970-01-01
      相关资源
      最近更新 更多