New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

ElementBase object

Definition

Constructors

C#
protected ElementBase()

ElementBase constructor

C#
public ElementBase(IElementsCollection elementsCollection, IAttributesCollection attributesCollection)
Parameters:elementsCollectionIElementsCollection

Collection of elements

attributesCollectionIAttributesCollection

Collection of attributes

Properties

Collection of the attributes of the current element

C#
public virtual IAttributesCollection Attributes { get; }
C#
protected abstract string EndTag { get; }

Collection of inner elements

C#
public virtual IElementsCollection InnerElements { get; }
C#
protected abstract string StartTag { get; }

Methods

Appends the attirbutes to the output

C#
protected virtual void AppendAttributes(StringBuilder sb)
Parameters:sbStringBuilder

StringBuilder object that holds the rendered output

Renders the element

C#
public virtual void Render(StringBuilder sb)
Parameters:sbStringBuilder

StringBuilder object that holds the rendered output

Renders the child elements

C#
protected virtual void RenderChildElements(StringBuilder sb)
Parameters:sbStringBuilder

StringBuilder object that holds the rendered output