GeoObjectNode¶
Namespace: ThinkGeo.Core
This class represent the model of an object.
public class GeoObjectNode
Inheritance Object → GeoObjectNode
Properties¶
Name¶
Gets or sets the Name of the node.
public string Name { get; set; }
Property Value¶
Parent¶
Gets or sets the Parent of the node.
public GeoObjectNode Parent { get; set; }
Property Value¶
Children¶
Gets the Children of the node.
public Collection<GeoObjectNode> Children { get; private set; }
Property Value¶
Attributes¶
Gets the Attribute of the node.
public Dictionary<string, string> Attributes { get; private set; }
Property Value¶
Value¶
Gets or sets the Value of the node.
public string Value { get; set; }
Property Value¶
IsDefaultValue¶
Gets or sets the IsDefaultValue of the node.
public bool IsDefaultValue { get; set; }
Property Value¶
Constructors¶
GeoObjectNode()¶
Creates an instance of GeoObjectNode.
public GeoObjectNode()
GeoObjectNode(String)¶
Creates an instance of GeoObjectNode with a name.
public GeoObjectNode(string name)
Parameters¶
name
String
The name of this node.
Methods¶
SetAttribute(String, String)¶
internal void SetAttribute(string attributeName, string attributeValue)
Parameters¶
attributeName
String
attributeValue
String
GetAttribute(String)¶
internal string GetAttribute(string attributeName)
Parameters¶
attributeName
String
Returns¶
RemoveAttribute(String)¶
internal void RemoveAttribute(string attributeName)
Parameters¶
attributeName
String
ToString()¶
Returns a string that contains the name, children count and attribute count of this node.
public string ToString()
Returns¶
String
The string that contains the name, children count and attribute count of this node.