Syncfusion.XlsIO.Base
Example 


IsTextLocked Property

Indicates whether comment text is locked.
Syntax
'Declaration
 
Property IsTextLocked As Boolean
'Usage
 
Dim instance As ITextBox
Dim value As Boolean
 
instance.IsTextLocked = value
 
value = instance.IsTextLocked
bool IsTextLocked {get; set;}
Example
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 textbox
            ITextBox textbox = worksheet.TextBoxes.AddTextBox(5, 5, 40, 100);
            
            //Set text
            textbox.Text = "Text";
            
            //Set locked
            textbox.IsTextLocked = false;
            
            //Set sheet protection
            worksheet.Protect("", ExcelSheetProtection.All);
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also