Kendo UI SpreadsheetSheetRowCell TagHelper SpreadsheetSheetRowCellTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("cell", ParentTag = "cells", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border-bottom", new string[] { "border-left", "border-top", "border-right", "validation" })]
[SuppressTagRendering]
public class SpreadsheetSheetRowCellTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseSpreadsheetSheetRowCellTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-spreadsheet name="spreadsheet">
<sheets>
<sheet>
<rows>
<sheet-row>
<cells>
<cell background="#ccff00"></cell>
</cells>
</sheet-row>
</rows>
</sheet>
</sheets>
</kendo-spreadsheet>
Child Tags
Constructors
Initializes a new instance of the SpreadsheetSheetRowCellTagHelper class.
public SpreadsheetSheetRowCellTagHelper()
Properties
The background color of the cell. Many standard CSS formats are supported. However, the canonical form is #ccff00.
public string Background { get; set; }
The font color of the cell. Many standard CSS formats are supported. However, the canonical form is #ccff00.
public string Color { get; set; }
The comment of the cell - a tooltip that appears when the cell is hovered.
public string Comment { get; set; }
The font family of the cell.
public string FontFamily { get; set; }
The format of the cell text. For more information, refer to the article on creating or deleting a custom number format on MS Office.
public string Format { get; set; }
The cell formula without the leading equals sign, for example, A1 * 10.
public string Formula { get; set; }
If set to true, renders the cell value as HTML. It is important to sanitize the value of the cell on the server for passing safe html because there is no client-side sanitizing. When editing a cell the new value can be checked and prevented in the client changing event.
public bool? Html { get; set; }
The zero-based index of the cell. Required to ensure correct positioning.
public double? Index { get; set; }
Specifies the text alignment in the cell
public SpreadsheetTextAlign? TextAlign { get; set; }
If set to true, sets the cell font to underline.
public bool? Underline { get; set; }
Specifies the text vertical alignment in the cell
public SpreadsheetVerticalAlign? VerticalAlign { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.