Method SetLocationOnDisplay
SetLocationOnDisplay(PointI, Display?)
Sets relative location of this window on the specified display.
public virtual void SetLocationOnDisplay(PointI relativePosition, Display? display = null)
Parameters
relativePosition
PointINew location of the window in pixels. This value is relative to the top-left corner of the display's client area.
display
DisplayDisplay which client area is used as a container for the window.
SetLocationOnDisplay(HorizontalAlignment?, VerticalAlignment?, Display?, bool)
Aligns window location inside the specified display's client area using given horizontal and vertical alignment.
public virtual void SetLocationOnDisplay(HorizontalAlignment? horz, VerticalAlignment? vert, Display? display = null, bool shrinkSize = true)
Parameters
horz
HorizontalAlignment?Horizontal alignment of the window inside display's client area.
vert
VerticalAlignment?Vertical alignment of the window inside display's client area.
display
DisplayDisplay which client area is used as a container for the window.
shrinkSize
boolWhether to shrink size of the window to fit in the display client area. Optional. Default is
true
.