New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI SpreadsheetSheetRowCell TagHelper SpreadsheetSheetRowCellTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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>

Constructors

Initializes a new instance of the SpreadsheetSheetRowCellTagHelper class.

C#
public SpreadsheetSheetRowCellTagHelper()

Properties

The background color of the cell. Many standard CSS formats are supported. However, the canonical form is #ccff00.

C#
public string Background { get; set; }

If set to true, sets the cell font to bold.

C#
public bool? Bold { get; set; }

The font color of the cell. Many standard CSS formats are supported. However, the canonical form is #ccff00.

C#
public string Color { get; set; }

The comment of the cell - a tooltip that appears when the cell is hovered.

C#
public string Comment { get; set; }

If set to false, disables the cell.

C#
public bool? Enable { get; set; }

The font family of the cell.

C#
public string FontFamily { get; set; }

The font size of the cell in pixels.

C#
public double? FontSize { 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.

C#
public string Format { get; set; }

The cell formula without the leading equals sign, for example, A1 * 10.

C#
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.

C#
public bool? Html { get; set; }

The zero-based index of the cell. Required to ensure correct positioning.

C#
public double? Index { get; set; }

If set to true, sets the cell font to italic.

C#
public bool? Italic { get; set; }

The hyperlink (URL) of the cell.

C#
public string Link { get; set; }

Specifies the text alignment in the cell

C#
public SpreadsheetTextAlign? TextAlign { get; set; }

If set to true, sets the cell font to underline.

C#
public bool? Underline { get; set; }

The cell value.

C#
public string Value { get; set; }

Specifies the text vertical alignment in the cell

C#
public SpreadsheetVerticalAlign? VerticalAlign { get; set; }

If set to true, wraps the cell content.

C#
public bool? Wrap { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>