Property RootNodes
RootNodes
Gets this dataset's root KML nodes as a KmlNodeCollection.
Declaration
public KmlNodeCollection RootNodes { get; }
Property Value
| Type | Description |
|---|---|
| KmlNodeCollection | A read-only collection of KmlNode objects. |
Remarks
Used to traverse the KmlNode objects for examining/using individual KML features. RootNodes is populated after a KML dataset has finished loading successfully.
It should be noted that a typical KML document will have multiple levels of nested KML nodes. To traverse through all of the KML node information in a KmlDataset, it is recommended to recursively test all KmlNodes to see if they contain additional child KmlNodes. When writing your recursive function pay particular attention to the properties: KmlDataset.RootNodes, KmlNetworkLink.ChildNodes, and KmlContainer.ChildNodes (inherited by KmlDocument and KmlFolder).
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.4 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.4 - 200.8 |
| Xamarin.Android | 100.4 - 100.15 |
| Xamarin.iOS | 100.4 - 100.15 |
| UWP | 100.4 - 200.8 |
Relevant samples
List KML contents: List the contents of a KML file.