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

Defines the fluent API for configuring SpreadsheetSheetRowCell

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SpreadsheetSheetRowCellBuilder

Inheritance: objectSpreadsheetSheetRowCellBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

SpreadsheetSheetRowCellBuilder method.

C#
public SpreadsheetSheetRowCellBuilder(SpreadsheetSheetRowCell container)
Parameters:containerSpreadsheetSheetRowCell

Properties

Gets the settings being configured.

C#
protected SpreadsheetSheetRowCell Container { get; }

Methods

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

C#
public SpreadsheetSheetRowCellBuilder Background(string value)
Parameters:valuestring

The value for Background

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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

C#
public SpreadsheetSheetRowCellBuilder Bold(bool value)
Parameters:valuebool

The value for Bold

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

The style information for the bottom border of the cell.

C#
public SpreadsheetSheetRowCellBuilder BorderBottom(Action<SpreadsheetSheetRowCellBorderBottomSettingsBuilder> configurator)
Parameters:configuratorAction<SpreadsheetSheetRowCellBorderBottomSettingsBuilder>

The SpreadsheetSheetRowCellBorderBottomSettingsBuilder for the borderbottom setting.

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current instance of SpreadsheetSheetRowCellBuilder .

The style information for the left border of the cell.

C#
public SpreadsheetSheetRowCellBuilder BorderLeft(Action<SpreadsheetSheetRowCellBorderLeftSettingsBuilder> configurator)
Parameters:configuratorAction<SpreadsheetSheetRowCellBorderLeftSettingsBuilder>

The SpreadsheetSheetRowCellBorderLeftSettingsBuilder for the borderleft setting.

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current instance of SpreadsheetSheetRowCellBuilder .

The style information for the right border of the cell.

C#
public SpreadsheetSheetRowCellBuilder BorderRight(Action<SpreadsheetSheetRowCellBorderRightSettingsBuilder> configurator)
Parameters:configuratorAction<SpreadsheetSheetRowCellBorderRightSettingsBuilder>

The SpreadsheetSheetRowCellBorderRightSettingsBuilder for the borderright setting.

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current instance of SpreadsheetSheetRowCellBuilder .

The style information for the top border of the cell.

C#
public SpreadsheetSheetRowCellBuilder BorderTop(Action<SpreadsheetSheetRowCellBorderTopSettingsBuilder> configurator)
Parameters:configuratorAction<SpreadsheetSheetRowCellBorderTopSettingsBuilder>

The SpreadsheetSheetRowCellBorderTopSettingsBuilder for the bordertop setting.

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current instance of SpreadsheetSheetRowCellBuilder .

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

C#
public SpreadsheetSheetRowCellBuilder Color(string value)
Parameters:valuestring

The value for Color

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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

C#
public SpreadsheetSheetRowCellBuilder Comment(string value)
Parameters:valuestring

The value for Comment

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

If set to false, disables the cell.

C#
public SpreadsheetSheetRowCellBuilder Enable(bool value)
Parameters:valuebool

The value for Enable

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

The font family of the cell.

C#
public SpreadsheetSheetRowCellBuilder FontFamily(string value)
Parameters:valuestring

The value for FontFamily

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

The font size of the cell in pixels.

C#
public SpreadsheetSheetRowCellBuilder FontSize(double value)
Parameters:valuedouble

The value for FontSize

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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 SpreadsheetSheetRowCellBuilder Format(string value)
Parameters:valuestring

The value for Format

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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

C#
public SpreadsheetSheetRowCellBuilder Formula(string value)
Parameters:valuestring

The value for Formula

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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 SpreadsheetSheetRowCellBuilder Html(bool value)
Parameters:valuebool

The value for Html

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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

C#
public SpreadsheetSheetRowCellBuilder Index(int value)
Parameters:valueint

The value for Index

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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

C#
public SpreadsheetSheetRowCellBuilder Italic(bool value)
Parameters:valuebool

The value for Italic

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

The hyperlink (URL) of the cell.

C#
public SpreadsheetSheetRowCellBuilder Link(string value)
Parameters:valuestring

The value for Link

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

Specifies the text alignment in the cell

C#
public SpreadsheetSheetRowCellBuilder TextAlign(SpreadsheetTextAlign value)
Parameters:valueSpreadsheetTextAlign

The value for TextAlign

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

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

C#
public SpreadsheetSheetRowCellBuilder Underline(bool value)
Parameters:valuebool

The value for Underline

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

The validation rule that is applied to the cell.

C#
public SpreadsheetSheetRowCellBuilder Validation(Action<SpreadsheetSheetRowCellValidationSettingsBuilder> configurator)
Parameters:configuratorAction<SpreadsheetSheetRowCellValidationSettingsBuilder>

The SpreadsheetSheetRowCellValidationSettingsBuilder for the validation setting.

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current instance of SpreadsheetSheetRowCellBuilder .

The cell value.

C#
public SpreadsheetSheetRowCellBuilder Value(object value)
Parameters:valueobject

The value for Value

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

Specifies the text vertical alignment in the cell

C#
public SpreadsheetSheetRowCellBuilder VerticalAlign(SpreadsheetVerticalAlign value)
Parameters:valueSpreadsheetVerticalAlign

The value for VerticalAlign

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.

If set to true, wraps the cell content.

C#
public SpreadsheetSheetRowCellBuilder Wrap(bool value)
Parameters:valuebool

The value for Wrap

Returns:

SpreadsheetSheetRowCellBuilder

Returns the current SpreadsheetSheetRowCellBuilder instance.