[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.RadioButtonListCellType

RadioButtonListCellType Class

Represents a radio button list cell type.

A radio button list cell type allows users to select one item from a list of radio buttons within a single cell. You can configure the layout direction, text alignment, spacing, and the number of rows and columns for the list. Use SelectFieldItem to define the items in the list.

Inheritance
RadioButtonListCellType
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class RadioButtonListCellType : BaseCellType
Public Class RadioButtonListCellType
    Inherits BaseCellType
Examples
RadioButtonListCellType cellType = new RadioButtonListCellType();
cellType.Items.Add(new SelectFieldItem("Option 1", "1"));
cellType.Items.Add(new SelectFieldItem("Option 2", "2"));
cellType.Direction = CellTypeDirection.Vertical;
worksheet.Range["A1"].CellType = cellType;

Constructors

Name Description
RadioButtonListCellType()

Create a radio button list cell type.

Properties

Name Description
AutoBoxSize

Gets or sets whether the box size changes with the font size.

BoxSize

Gets or sets a value that indicates the radio button box size.

Direction

Gets or sets the direction of the radio button list.

HorizontalSpacing

Gets or sets the horizontal spacing in the radio button list.

IsFlowLayout

Gets or sets whether the radio button list layout is autofit.

Items

Gets the items for the radio button list.

MaxColumnCount

Gets or sets the maximum column count for the radio button list.

MaxRowCount

Gets or sets the maximum row count for the radio button list.

TextAlign

Gets or sets the text alignment of the radio button list. Only left and right are supported.

VerticalSpacing

Gets or sets the vertical spacing in the radio button list.