Table of Contents

Method SetPositionInDips

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetPositionInDips(PointD, SizeD, HVDropDownAlignment?)

Move the popup window to the right position, i.e. such that it is entirely visible.

public virtual void SetPositionInDips(PointD ptOrigin, SizeD size, HVDropDownAlignment? position = null)

Parameters

ptOrigin PointD

Must be given in screen coordinates.

size SizeD

The size of the popup window.

position HVDropDownAlignment?

The optional horizontal and vertical alignment of the popup relative to the control. If null, the default alignment is used.

Remarks

Default popup position is (ptOrigin + size) if it opens below and to the right (default), at (ptOrigin - size) if it opens above and to the left.