Window.Top Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the position of the window's top edge, in relation to the desktop.
public:
property double Top { double get(); void set(double value); };
[System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public double Top { get; set; }
[System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public double Top { get; set; }
[<System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
member this.Top : double with get, set
[<System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
member this.Top : double with get, set
Public Property Top As Double
Property Value
The position of the window's top, in logical units (1/96").
- Attributes
Remarks
When the Window is maximized or minimized, this value represents the top edge of the restore point for the Window.
This property cannot be set through a style.
If you do not specify a value, Top is set to the system default value. You can also specify the system default value by setting Top to NaN. Neither NegativeInfinity nor PositiveInfinity is a valid value for Top.
Note
You cannot set or get this property when a window is hosted in a browser.
Dependency Property Information
Identifier field | TopProperty |
Metadata properties set to true |
None |
Applies to
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za