Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Sets or returns the vertical (y)

...

position

...

of

...

the

...

workbook

...

window's

...

upper

...

left

...

corner

...

when

...

displayed

...

in

...

Excel.

...

Signature
C#
C#
 public int VerticalPosition{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property VerticalPosition() As Integer
{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#}
Remarks

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

Example
Code Block
csharp
csharp
titleC#


          //--- Get the vertical position of the workbook window's upper left corner
          int winVert = wb.VerticalPosition;

          //--- Set the vertical position of the workbook window's upper left corner
          wb.VerticalPosition = 100;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get the vertical position of the workbook window's upper left corner
          Dim winVert As Integer = wb.VerticalPosition

          '--- Set the vertical position of the workbook window's upper left corner
          wb.VerticalPosition = 100
        
{code} {example}