Interface IElement
A modifiable AML element. This element could be an Item, property, result tag, or something else
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IElement : IReadOnlyElement, IAmlNode
Properties
| Improve this Doc View SourceParent
Retrieve the parent element
Declaration
IElement Parent { get; }
Property Value
Type | Description |
---|---|
IElement |
Methods
| Improve this Doc View SourceAdd(Object)
Add new content to the element
Declaration
IElement Add(object content)
Parameters
Type | Name | Description |
---|---|---|
System.Object | content | IElement, IAttribute, or System.Object to add as a child of the element |
Returns
Type | Description |
---|---|
IElement | The current element for chaining additional calls |
Attribute(String)
Retrieve the attribute with the specified name
Declaration
IAttribute Attribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the XML attribute |
Returns
Type | Description |
---|---|
IAttribute |
|
Attributes()
Retrieve all attributes specified for the element
Declaration
IEnumerable<IAttribute> Attributes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IAttribute> |
Elements()
Retrieve all child elements
Declaration
IEnumerable<IElement> Elements()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IElement> |
Remove()
Remove the element from its parent
Declaration
void Remove()
RemoveAttributes()
Remove attributes from the element
Declaration
void RemoveAttributes()
RemoveNodes()
Remove child nodes from the element
Declaration
void RemoveNodes()