Represents a simple html element.
| C# | Visual Basic | Visual C++ |
public class Element : RenderableComponent
Public Class Element _ Inherits RenderableComponent
public ref class Element : public RenderableComponent
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Element(String) |
Initializes a new instance of the Element class.
| |
| Element(String, array<Element>[]()[]) |
Initializes a new instance of the Element class.
| |
| Element(String, String, array<Element>[]()[]) |
Initializes a new instance of the Element class.
| |
| AddAttribute(String) |
Adds the specified name value pair separated by an equals sign.
| |
| AddAttribute(String, Object) |
Adds the specified attribute name.
| |
| AddAttribute(array<Attribute>[]()[]) |
Adds the specified attributes.
| |
| AddAttributeFormat(String, String, array<Object>[]()[]) |
Adds the specified attribute name.
| |
| AddCssClasses(String) |
Adds the CSS classes.
| |
| AddStyle(String) |
Adds the style.
| |
| AddStyle(String, String) |
Adds the style.
| |
| Append(array<Element>[]()[]) |
Appends the specified child elements.
| |
| Attributes |
Gets the attributes for the element. This returns a readonly collection.
| |
| Children |
Gets the child elements.
| |
| CssClasses |
Gets or sets the CSS classes.
| |
| Equals(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.
| |
| Implicit(Element) |
Performs an implicit conversion from Element to String.
| |
| InnerHtml |
Gets or sets the inner HTML of the element.
| |
| Insert(array<Element>[]()[]) |
Inserts the elements at index zero and returns the updated element.
| |
| Insert(Int32, array<Element>[]()[]) |
Inserts the elements at the specified index and returns the updated
element.
| |
| Item[([(String])]) |
Gets or sets the attribute name. If the attribute does not exist it
is added, otherwise it is updated.
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RemoveAttribute(String) |
Removes the specified attribute.
| |
| Render(IWriter) |
Renders this element to the html writer.
(Overrides RenderableComponent.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.
| |
| RenderChildren(IWriter) |
Renders the children.
| |
| RenderContent(IWriter) |
Renders the content.
| |
| RenderEndTag(IWriter) |
Renders the end tag.
| |
| RenderStartTag(IWriter) |
Renders the start tag.
| |
| Styles |
Gets the css styles.
| |
| TagName |
Gets the name of the tag. This can only be set in the ctor.
| |
| 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
| |
| Update(String, array<Object>[]()[]) |
Replaces the content of this element with innerHtml
|
| Object | |||
| RenderableComponent | |||
| Element | |||
| TextElement | |||