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
Wiki Markup
{description}
{excerpt}Sets or returns the vertical \(y) position of the workbook window's upper left corner when displayed in Excel.
{excerpt}
{signature:C#}
 public int VerticalPosition{ get; set; }
{signature}{signature: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#}

          //--- 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:vb.net|title=vb.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}