Show / Hide Table of Contents

Interface IElement

A modifiable AML element. This element could be an Item, property, result tag, or something else

Inherited Members
IReadOnlyElement.AmlContext
IReadOnlyElement.Exists
IReadOnlyElement.Name
IReadOnlyElement.Value
IAmlNode.ToAml(XmlWriter, AmlWriterSettings)
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IElement : IReadOnlyElement, IAmlNode

Properties

| Improve this Doc View Source

Parent

Retrieve the parent element

Declaration
IElement Parent { get; }
Property Value
Type Description
IElement

Methods

| Improve this Doc View Source

Add(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

| Improve this Doc View Source

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
  • If the property exists, a valid IAttribute will be returned
  • If the property does not exists, a "null" IAttribute will be returned where Exists = false
| Improve this Doc View Source

Attributes()

Retrieve all attributes specified for the element

Declaration
IEnumerable<IAttribute> Attributes()
Returns
Type Description
System.Collections.Generic.IEnumerable<IAttribute>
| Improve this Doc View Source

Elements()

Retrieve all child elements

Declaration
IEnumerable<IElement> Elements()
Returns
Type Description
System.Collections.Generic.IEnumerable<IElement>
| Improve this Doc View Source

Remove()

Remove the element from its parent

Declaration
void Remove()
| Improve this Doc View Source

RemoveAttributes()

Remove attributes from the element

Declaration
void RemoveAttributes()
| Improve this Doc View Source

RemoveNodes()

Remove child nodes from the element

Declaration
void RemoveNodes()

Extension Methods

ItemExtensions.ToAml(IAmlNode, AmlWriterSettings)
ItemExtensions.ToAml(IAmlNode, XmlWriter)
ItemExtensions.Element(IReadOnlyElement, String)
ItemExtensions.Add(IElement, Object[])
ItemExtensions.ToXml(IAmlNode)
ItemExtensions.CreateReader(IReadOnlyElement)
ItemExtensions.Parents(IReadOnlyElement)
ItemExtensions.ParentsAndSelf(IReadOnlyElement)
ItemExtensions.InnerText(IReadOnlyElement)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX