Leer en inglés

Compartir a través de


WebBrowser.Top Property

Definition

Gets or sets the distance, in points, between the top edge of the WebBrowser and the top edge of the worksheet.

C#
public double Top { get; set; }

Property Value

The distance, in points, between the top edge of the WebBrowser and the top edge of the worksheet.

Examples

For a code example that demonstrates how to use this property, see Microsoft.Office.Tools.Excel.Controls.Button.Top. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent Top property.

Remarks

The Microsoft.Office.Tools.Excel.Controls.WebBrowser.Top property uses points, whereas System.Windows.Forms.Control.Top property uses pixels.

Applies to

Producto Versiones
Visual Studio Tools for Office 2017, 2019, 2022