StyleElement
Class
Style element
Definition
Namespace:Telerik.Web.UI.GridExcelBuilder
Assembly:Telerik.Web.UI.dll
Syntax:
C#
public class StyleElement : ElementBase, IElement
Inheritance: objectElementBaseStyleElement
Implements:
Inherited Members
Constructors
Default constructor for the StyleElement
C#
public StyleElement()
Style element constructor that accepts Style ID
Properties
Alignment style object. Speicifies both horizontal and vertical alignment.
C#
public AlignmentStyleElement AlignmentElement { get; }
Borders set for the current style
C#
public virtual IBorderStylesCollection Borders { get; }
Cell protection settings
C#
public CellProtectionElement CellProtection { get; }
Font style
C#
public virtual FontStyleElement FontStyle { get; }
Interior style
C#
public virtual InteriorStyleElement InteriorStyle { get; }
Number format
C#
public NumberFormatStyleElement NumberFormat { get; }
Methods
C#
protected override void AppendAttributes(StringBuilder sb)
Id must be set
Overrides:
Renders the child elements
C#
protected override void RenderChildElements(StringBuilder sb)
StringBuilder object that holds the rendered output
Overrides: