Class ReportContentNode
This class describes a content node for a report.
Namespace: Sartorius.SAF.ReportGenerator
Assembly: Sartorius.SAF.ReportGenerator.dll
Syntax
public class ReportContentNode : IEnumerable<ReportContentNode>, IEnumerable
Constructors
View SourceReportContentNode()
Initializes a new instance of the ReportContentNode class.
Declaration
protected ReportContentNode()
ReportContentNode(IEnumerable<ReportContentNode>)
Initializes a new instance of the ReportContentNode class with the specified child content node. The value is empty.
Declaration
protected ReportContentNode(IEnumerable<ReportContentNode> nodes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ReportContentNode> | nodes | The child nodes. |
ReportContentNode(String)
Initializes a new instance of the ReportContentNode class.
Declaration
public ReportContentNode(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
ReportContentNode(String, ReportContentNode[])
Initializes a new instance of the ReportContentNode class with the specified child content nodes. The value is empty.
Declaration
public ReportContentNode(string key, params ReportContentNode[] nodes)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
ReportContentNode[] | nodes | An array containing zero or more ReportContentNodes. |
ReportContentNode(String, IEnumerable<ReportContentNode>)
Initializes a new instance of the ReportContentNode class with the specified child content node. The value is empty.
Declaration
public ReportContentNode(string key, IEnumerable<ReportContentNode> nodes)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.Collections.Generic.IEnumerable<ReportContentNode> | nodes | The child nodes. |
ReportContentNode(String, IReadOnlyDictionary<String, String>)
Initializes a new instance of the ReportContentNode class with the specified data as child content nodes. The value is empty.
Declaration
public ReportContentNode(string key, IReadOnlyDictionary<string, string> data)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> | data | Key–value pairs for the child content nodes. |
ReportContentNode(String, String)
Initializes a new instance of the ReportContentNode class with the specified value. The child nodes are empty.
Declaration
public ReportContentNode(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | value | The value. |
Methods
View SourceAdd(ReportContentNode)
Adds a new child node.
Declaration
public void Add(ReportContentNode childNode)
Parameters
Type | Name | Description |
---|---|---|
ReportContentNode | childNode | The child node to add |
Add(String, ReportContentNode[])
Adds a new named child content tree.
Declaration
public void Add(string childKey, params ReportContentNode[] childNodes)
Parameters
Type | Name | Description |
---|---|---|
System.String | childKey | The key for the child items. |
ReportContentNode[] | childNodes | The child items for the specified |
Add(String, String)
Adds a new key value pair.
Declaration
public void Add(string childKey, string childValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | childKey | The key. |
System.String | childValue | The value of the specified |
Explicit Interface Implementations
View SourceIEnumerable<ReportContentNode>.GetEnumerator()
Declaration
IEnumerator<ReportContentNode> IEnumerable<ReportContentNode>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ReportContentNode> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |