Message-ID: <343386825.8317.1711641700892.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8316_1602168194.1711641700892" ------=_Part_8316_1602168194.1711641700892 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html SheetProtection.AllowInsertRows

SheetProtection.AllowInsertRows

Introduced in build 8.6.1

=20

Description

=20

Sets or returns whether the worksheet will allow users to insert rows wh= en the worksheet is protected.

=20
C#
=20
 public boolean AllowInsertRows{ get; set; }
=20
=20
vb.net
=20
Public Property AllowInsertRows() As Boolean
=20
=20

Examples

=20
C#
=20

          ExcelApplication xla =3D new ExcelApplication();
          Workbook wb =3D xla.Open(@"C:\MySpreadsheet.xlsx");
          Worksheet ws =3D wb.Worksheets[0];
          ws.SheetProtection.AllowInsertRows =3D true;
          ws.Protect("password");
        
=20
=20
vb.net
=20

          Dim xla As New ExcelApplication()
          Dim wb As Workbook =3D xla.Open("C:\MySpreadsheet.xlsx"=
)
          Dim ws As Worksheet =3D wb.Worksheets(0)
          ws.SheetProtection.AllowInsertRows =3D true
          ws.Protect("password");
        
=20
------=_Part_8316_1602168194.1711641700892--