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
relativePositionPointINew location of the window in pixels. This value is relative to the top-left corner of the display's client area.
displayDisplayDisplay 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
horzHorizontalAlignment?Horizontal alignment of the window inside display's client area.
vertVerticalAlignment?Vertical alignment of the window inside display's client area.
displayDisplayDisplay which client area is used as a container for the window.
shrinkSizeboolWhether to shrink size of the window to fit in the display client area. Optional. Default is
true.