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

Provides a base implementation for ExcelML export elements.

Definition

Namespace:Telerik.WinControls.UI.Export.ExcelML

Assembly:TelerikData.dll

Syntax:

C#
[DataContract]
[KnownType(typeof(AlignmentStyleElement))]
[KnownType(typeof(FontStyleElement))]
[KnownType(typeof(BorderStyles))]
[KnownType(typeof(InteriorStyleElement))]
[KnownType(typeof(NumberFormatStyleElement))]
[KnownType(typeof(SingleStyleElement))]
[KnownType(typeof(BorderStylesCollection))]
public abstract class ElementBase : IElement

Inheritance: objectElementBase

Derived Classes: AlignmentStyleElementBorderStylesCellElementColumnElementDataElementFontStyleElementInteriorStyleElementNumberFormatStyleElementRowElementSingleStyleElementStylesElementTableElementWorkBookElementWorksheetElement...

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 elementsCollection, IAttributesCollection attributesCollection)
Parameters:elementsCollectionIElementsCollection

The collection of child elements.

attributesCollectionIAttributesCollection

The collection of element attributes.

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 collection of child elements.

C#
public virtual IElementsCollection InnerElements { get; }

Implements: IElement.InnerElements

Gets the opening tag format string for the element.

C#
protected abstract string StartTag { get; }

Methods

Appends serialized attributes to the opening tag output.

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

The string builder that receives the rendered output.

Creates a deep copy of the current element.

C#
public virtual object DeepCopy()
Returns:

object

A deep-cloned copy of the current element instance.

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.