{description}
{excerpt}Sets or returns whether a cell will be locked in a protected worksheet.{excerpt}
{signature:C#}
 public boolean CellLocked{ get; set; }
{signature}{signature:vb.net}
Public Property CellLocked() As Boolean
{signature}
{example}{code:csharp|title=C#}

          //--- Get CellLocked
          bool locked = style.CellLocked;

          //--- Set CellLocked
          style.CellLocked = true;
        {code}
{code:vb.net|title=vb.net}

          '--- Get CellLocked
          Dim locked As Boolean = style.CellLocked

          '--- Set CellLocked
          style.CellLocked = True
        {code}

{example}