Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{description}
{excerpt}Sets or returns the horizontal \(x) position of the workbook window's upper left corner when displayed in Excel.

...

Signature
C#C#



{excerpt}
{signature:C#}
 public int HorizontalPosition{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property HorizontalPosition() As Integer
Remarks

In Excel 2007 and 2010 this property is measured in twips.
Values may be different than in ExcelApplication for earlier versions of Excel.

{signature}
{remarks}
In Excel 2007 and 2010 this property is measured in twips.
Values may be different than in ExcelApplication for earlier versions of Excel.

{remarks}

{example}{code:csharp|title=C#}

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

          //--- Set the horizontal position of the workbook window's upper left corner
          wb.HorizontalPosition = 100;
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Set the horizontal position of the workbook window's upper left corner
          wb.HorizontalPosition = 100
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle