ElementBase
Provides a base implementation for HTML export elements.
Definition
Namespace:Telerik.WinControls.UI.Export.HTML
Assembly:TelerikData.dll
Syntax:
public abstract class ElementBase : IElement
Inheritance: objectElementBase
Derived Classes:
Implements:
Constructors
Initializes a new instance of the ElementBase class.
protected ElementBase()
Initializes a new instance of the ElementBase class with custom collections.
public ElementBase(IElementsCollection elements, IAttributesCollection attributes, IStyleValuesCollection styles)
The collection of child elements.
attributesIAttributesCollectionThe collection of element attributes.
stylesIStyleValuesCollectionThe collection of style entries.
Properties
Gets the collection of element attributes.
public virtual IAttributesCollection Attributes { get; }
Implements:
Gets the opening tag format string for the element.
protected abstract string StartTag { get; }
Gets the collection of style entries for the element.
public virtual IStyleValuesCollection Styles { get; }
Implements:
Methods
Appends serialized attributes and styles to the opening tag output.
protected virtual void AppendAttributes(StringBuilder sb)
The string builder that receives the rendered output.
Renders the element to the specified string builder.
public virtual void Render(StringBuilder sb)
The string builder that receives the rendered output.
Implements:
Renders all child elements to the specified string builder.
protected virtual void RenderChildElements(StringBuilder sb)
The string builder that receives the rendered output.
Applies style entries to the element.
public virtual void SetStyles(IStyleValuesCollection styleValues)
The style values to merge into the current styles.
Implements: