Syncfusion.XlsIO.Base
Example 


LinkedCell Property (ICheckBoxShape)

Indicates the cell in which the option button points to
Syntax
'Declaration
 
Property LinkedCell As IRange
'Usage
 
Dim instance As ICheckBoxShape
Dim value As IRange
 
instance.LinkedCell = value
 
value = instance.LinkedCell
IRange LinkedCell {get; set;}
Example
The following code illustrates how to set LinkedCell for the checkbox.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Add shape
            ICheckBoxShape checkbox = worksheet.Shapes.AddCheckBox();
            
            //Set linked cell
            checkbox.LinkedCell = worksheet["C7"];
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also