Point.Y Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the y-coordinate of this Point.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

member Y : int with get, set

Property Value

Type: System.Int32

The y-coordinate of this Point.

The following code example demonstrates how to use the Equality operator and how to construct a Point from a Size or two integers. It also demonstrates how to use the X and Y properties. This example is designed to be used with Windows Forms. Paste the code into a form that contains a button named Button1, and associate the Button1_Click method with the button's Click event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: