Html Library Help
TextElement Class
NamespacesHtmlTextElement
Represents a special element used for literal text. Using this element allows the use of strings to act as Elements. So "Hello World" can become an Element simply by wrapping it in a TextElement like this: new TextElement("Hello World")
Declaration Syntax
C#Visual BasicVisual C++
public class TextElement : Element
Public Class TextElement _
	Inherits Element
public ref class TextElement : public Element
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
TextElement(String)
Initializes a new instance of the TextElement class.

AddAttribute(String)
Adds the specified name value pair separated by an equals sign.
(Inherited from Element.)
AddAttribute(String, Object)
Adds the specified attribute name.
(Inherited from Element.)
AddAttribute(array<Attribute>[]()[])
Adds the specified attributes.
(Inherited from Element.)
AddAttributeFormat(String, String, array<Object>[]()[])
Adds the specified attribute name.
(Inherited from Element.)
AddCssClasses(String)
Adds the CSS classes.
(Inherited from Element.)
AddStyle(String)
Adds the style.
(Inherited from Element.)
AddStyle(String, String)
Adds the style.
(Inherited from Element.)
Append(array<Element>[]()[])
Appends the specified child elements.
(Inherited from Element.)
Attributes
Gets the attributes for the element. This returns a readonly collection.
(Inherited from Element.)
Children
Gets the child elements.
(Inherited from Element.)
CssClasses
Gets or sets the CSS classes.
(Inherited from Element.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasAttribute(String)
Determines if the current element has an attribute with the specified name.
(Inherited from Element.)
InnerHtml
Gets or sets the inner HTML of the element.
(Inherited from Element.)
Insert(array<Element>[]()[])
Inserts the elements at index zero and returns the updated element.
(Inherited from Element.)
Insert(Int32, array<Element>[]()[])
Inserts the elements at the specified index and returns the updated element.
(Inherited from Element.)
Item[([(String])])
Gets or sets the attribute name. If the attribute does not exist it is added, otherwise it is updated.
(Inherited from Element.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
RemoveAttribute(String)
Removes the specified attribute.
(Inherited from Element.)
Render(IWriter)
Renders this element to the html writer.
(Overrides Element.Render(IWriter).)
Render(HtmlTextWriter)
Renders the specified HTML.
(Inherited from RenderableComponent.)
Render(XmlWriter)
Renders the specified XML writer.
(Inherited from RenderableComponent.)
Render(TextWriter)
Renders the html to the TextWriter instance.
(Inherited from RenderableComponent.)
Render(Stream)
Renders the html to the Stream instance.
(Inherited from RenderableComponent.)
RenderAttributes(IWriter)
Renders the attributes.
(Inherited from Element.)
RenderChildren(IWriter)
Renders the children.
(Inherited from Element.)
RenderContent(IWriter)
Renders the content.
(Inherited from Element.)
RenderEndTag(IWriter)
Renders the end tag.
(Inherited from Element.)
RenderStartTag(IWriter)
Renders the start tag.
(Inherited from Element.)
Styles
Gets the css styles.
(Inherited from Element.)
TagName
Gets the name of the tag. This can only be set in the ctor.
(Inherited from Element.)
Text
Gets the text.

ToString()()()
Returns a String that represents the current Object. Internally, this creates a StringWriter, calls the Render(TextWriter writer) method and returns the result.
(Inherited from RenderableComponent.)
Update(String)
Replaces the content of this element with innerHtml
(Inherited from Element.)
Update(String, array<Object>[]()[])
Replaces the content of this element with innerHtml
(Inherited from Element.)
Inheritance Hierarchy

Assembly: Html (Module: Html) Version: 1.0.0.2 (1.0.0.2)