C# 클래스 Concordion.Api.Element

A wrapper class for an XML element, usually from the specification or the target of the specification
파일 보기 프로젝트 열기: concordion/concordion-net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetChildNodes IEnumerable
WrapXElements IEnumerable

공개 메소드들

메소드 설명
AddAttribute ( string localName, string value ) : Element

Adds an attribute to the element

AddStyleClass ( string style ) : Element

Applies a css class to the following element

AppendChild ( Element child ) : void

Appends a child Element after this one

AppendNonBreakingSpace ( ) : Element

Appends a nonbreaking space to the current Element

AppendNonBreakingSpaceIfBlank ( ) : Element

If the Element has no text then a element is appended

AppendSister ( Element element ) : void
AppendText ( string text ) : Element

Appends some text to the Element

Element ( System.Xml.Linq.XElement element ) : System

Constructs a new object of the ElemElementent type

Element ( string name ) : System

Constructs a new object of the Element type

Equals ( object obj ) : bool

Determines if another object equals this one

GetAttributeValue ( string attributeName ) : string

Gets the value of an attribute of the Element

GetAttributeValue ( string attributeName, string namespaceName ) : string

Gets the value of an attribute of the Element in the specified namespace

GetChildElements ( ) : IEnumerable

Gets only the immediate child Element of the current one

GetChildElements ( string name ) : IEnumerable
GetDescendantElements ( string name ) : IList

Gets all of he descendant Element objects with a specific name

GetFirstChildElement ( string elementName ) : Element

Gets the first child Element with the following name The document is searched in DOM document order

GetFirstDescendantNamed ( string name ) : Element

Gets the first descendant that matches the name

GetHashCode ( ) : int

Gets a hashcode of the object

GetRootElement ( ) : Element

Gets the root element of the System.Xml.Linq.XDocument that this Element is contained within

IsNamed ( string name ) : bool

Determines if the Element has a name like the parameter

MoveChildrenTo ( Element destinationElement ) : void

Moves all of the children of this Element to another element

PrependChild ( Element child ) : Element

Prepends a child Element before this one

PrependText ( string text ) : void

Adds some text to the first of the text of this Element>

SetId ( string id ) : Element

Sets the id of the current element

ToXml ( ) : string

Outputs the Element to a string as xml

비공개 메소드들

메소드 설명
GetChildNodes ( ) : IEnumerable

Gets all child System.Xml.Linq.XNode

WrapXElements ( IEnumerable xElements ) : IEnumerable

메소드 상세

AddAttribute() 공개 메소드

Adds an attribute to the element
public AddAttribute ( string localName, string value ) : Element
localName string The name of the attribute
value string The value of the attribute
리턴 Element

AddStyleClass() 공개 메소드

Applies a css class to the following element
public AddStyleClass ( string style ) : Element
style string The name of the style to apply
리턴 Element

AppendChild() 공개 메소드

Appends a child Element after this one
public AppendChild ( Element child ) : void
child Element
리턴 void

AppendNonBreakingSpace() 공개 메소드

Appends a nonbreaking space to the current Element
public AppendNonBreakingSpace ( ) : Element
리턴 Element

AppendNonBreakingSpaceIfBlank() 공개 메소드

If the Element has no text then a element is appended
public AppendNonBreakingSpaceIfBlank ( ) : Element
리턴 Element

AppendSister() 공개 메소드

public AppendSister ( Element element ) : void
element Element
리턴 void

AppendText() 공개 메소드

Appends some text to the Element
public AppendText ( string text ) : Element
text string
리턴 Element

Element() 공개 메소드

Constructs a new object of the ElemElementent type
public Element ( System.Xml.Linq.XElement element ) : System
element System.Xml.Linq.XElement The to wrap
리턴 System

Element() 공개 메소드

Constructs a new object of the Element type
public Element ( string name ) : System
name string The name of the new Element
리턴 System

Equals() 공개 메소드

Determines if another object equals this one
public Equals ( object obj ) : bool
obj object
리턴 bool

GetAttributeValue() 공개 메소드

Gets the value of an attribute of the Element
public GetAttributeValue ( string attributeName ) : string
attributeName string The name of the attribute
리턴 string

GetAttributeValue() 공개 메소드

Gets the value of an attribute of the Element in the specified namespace
public GetAttributeValue ( string attributeName, string namespaceName ) : string
attributeName string The name of the attribute
namespaceName string The name of the xml namespace
리턴 string

GetChildElements() 공개 메소드

Gets only the immediate child Element of the current one
public GetChildElements ( ) : IEnumerable
리턴 IEnumerable

GetChildElements() 공개 메소드

public GetChildElements ( string name ) : IEnumerable
name string
리턴 IEnumerable

GetDescendantElements() 공개 메소드

Gets all of he descendant Element objects with a specific name
public GetDescendantElements ( string name ) : IList
name string
리턴 IList

GetFirstChildElement() 공개 메소드

Gets the first child Element with the following name The document is searched in DOM document order
public GetFirstChildElement ( string elementName ) : Element
elementName string
리턴 Element

GetFirstDescendantNamed() 공개 메소드

Gets the first descendant that matches the name
public GetFirstDescendantNamed ( string name ) : Element
name string The name to find
리턴 Element

GetHashCode() 공개 메소드

Gets a hashcode of the object
public GetHashCode ( ) : int
리턴 int

GetRootElement() 공개 메소드

Gets the root element of the System.Xml.Linq.XDocument that this Element is contained within
public GetRootElement ( ) : Element
리턴 Element

IsNamed() 공개 메소드

Determines if the Element has a name like the parameter
public IsNamed ( string name ) : bool
name string
리턴 bool

MoveChildrenTo() 공개 메소드

Moves all of the children of this Element to another element
public MoveChildrenTo ( Element destinationElement ) : void
destinationElement Element
리턴 void

PrependChild() 공개 메소드

Prepends a child Element before this one
public PrependChild ( Element child ) : Element
child Element
리턴 Element

PrependText() 공개 메소드

Adds some text to the first of the text of this Element>
public PrependText ( string text ) : void
text string
리턴 void

SetId() 공개 메소드

Sets the id of the current element
public SetId ( string id ) : Element
id string The id to set
리턴 Element

ToXml() 공개 메소드

Outputs the Element to a string as xml
public ToXml ( ) : string
리턴 string