FormControlCollection.AddRadioButton(CellRange) Method
In This Article
Creates a radio button form control at the specified cell range.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
RadioButtonFormControl AddRadioButton(
CellRange targetRange
)
#Parameters
Name | Type | Description |
---|---|---|
target |
Cell |
A cell range where the form control should be located. |
#Returns
Type | Description |
---|---|
Radio |
The radio button form control. |
#Remarks
#Example
The code sample below creates a radio button form control:
Workbook workbook = new Workbook();
workbook.LoadDocument("Document.xlsx");
var cellRange = workbook.Worksheets[0].Range["B2:C4"];
var radioButtonFormControl = formControls.AddRadioButton(cellRange);
radioButtonFormControl.PlainText = "Click Here";
radioButtonFormControl.PrintObject = false;
Note
The Form
method call adds a new item to both Form
See Also