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

Workbook.HorizontalPosition

Description

= =20

Sets or returns the horizontal (x) position of the workbook window's upp= er left corner when displayed in Excel.

=20

=20
C#
=20
 public int HorizontalPosition{ get; set; }
=20
=20
vb.net
=20
Public Property HorizontalPosition() As Integer
=20
=20

Remarks

In Excel 2007 a= nd 2010 this property is measured in twips.
Values may be different than in ExcelApplication for earlier version= s of Excel.=20

Examples

=20
C#
=20

          //--- Get the horizontal position of the workbook window's upper =
left corner
          int winHoriz =3D wb.HorizontalPosition;

          //--- Set the horizontal position of the workbook window's upper =
left corner
          wb.HorizontalPosition =3D 100;
        
=20
=20
vb.net
=20

          '--- Get the horizontal position of the workbook window's upper l=
eft corner
          Dim winHoriz As Integer =3D wb.HorizontalPosition

          '--- Set the horizontal position of the workbook window's upper l=
eft corner
          wb.HorizontalPosition =3D 100
        
=20
------=_Part_8696_1783046373.1711655846389--