Compartilhar via


LinkLabel.Top Property

Definition

Gets or sets the distance, in points, between the top edge of the LinkLabel and the top edge of the document.

public:
 property float Top { float get(); void set(float value); };
public float Top { get; set; }
member this.Top : single with get, set
Public Property Top As Single

Property Value

The distance, in points, between the top edge of the LinkLabel and the top edge of the document.

Examples

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

Remarks

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

You can only use the Top property of a LinkLabel control that is not in line with text. For more information, see Adding Controls to Office Documents at Run Time.

Applies to