New to Telerik UI for WinForms? Start a free 30-day trial

Provides a base implementation for HTML export elements.

Definition

Namespace:Telerik.WinControls.UI.Export.HTML

Assembly:TelerikData.dll

Syntax:

C#
public abstract class ElementBase : IElement

Inheritance: objectElementBase

Derived Classes: CaptionElementCellElementColumnElementHtmlExportElementRowElementStyleElementTableElement...

Implements: IElement

Constructors

Initializes a new instance of the ElementBase class.

C#
protected ElementBase()

Initializes a new instance of the ElementBase class with custom collections.

C#
public ElementBase(IElementsCollection elements, IAttributesCollection attributes, IStyleValuesCollection styles)
Parameters:elementsIElementsCollection

The collection of child elements.

attributesIAttributesCollection

The collection of element attributes.

stylesIStyleValuesCollection

The collection of style entries.

Properties

Gets the collection of element attributes.

C#
public virtual IAttributesCollection Attributes { get; }

Implements: IElement.Attributes

Gets the closing tag for the element.

C#
protected abstract string EndTag { get; }

Gets the opening tag format string for the element.

C#
protected abstract string StartTag { get; }

Gets the collection of style entries for the element.

C#
public virtual IStyleValuesCollection Styles { get; }

Implements: IElement.Styles

Methods

Appends serialized attributes and styles to the opening tag output.

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

The string builder that receives the rendered output.

Renders the element to the specified string builder.

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

The string builder that receives the rendered output.

Implements: IElement.Render(StringBuilder)

Renders all child elements to the specified string builder.

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

The string builder that receives the rendered output.

Applies style entries to the element.

C#
public virtual void SetStyles(IStyleValuesCollection styleValues)
Parameters:styleValuesIStyleValuesCollection

The style values to merge into the current styles.

Implements: IElement.SetStyles(IStyleValuesCollection)