共用方式為


DateTimePicker.Top Property

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

Namespace:  Microsoft.Office.Tools.Word.Controls
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property Top As Single
public float Top { get; set; }

Property Value

Type: System.Single
The distance, in points, between the top edge of the DateTimePicker and the top edge of the document.

Remarks

The DateTimePicker.Top property uses points, whereas Control.Top property uses pixels.

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

Examples

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

.NET Framework Security

See Also

Reference

DateTimePicker Class

Microsoft.Office.Tools.Word.Controls Namespace