API Reference
Class
PopupPlacementMath
Helper methods for converting monitor pixel coordinates into device-independent popup placement.
Inheritance
- Object
- PopupPlacementMath
Methods
public static PopupBounds ConvertPixelBoundsToDips(Double leftPixels, Double topPixels, Double rightPixels, Double bottomPixels, Double dpiX, Double dpiY) #Returns:
PopupBoundsConverts monitor work-area bounds from device pixels into device-independent units.
Parameters
- leftPixels System.Double
- topPixels System.Double
- rightPixels System.Double
- bottomPixels System.Double
- dpiX System.Double
- dpiY System.Double
public static PopupPoint ConvertPixelsToDips(Double xPixels, Double yPixels, Double dpiX, Double dpiY) #Returns:
PopupPointConverts a monitor-relative point from device pixels into device-independent units.
Parameters
- xPixels System.Double
- yPixels System.Double
- dpiX System.Double
- dpiY System.Double
public static PopupPlacement PlaceNearCursor(PopupBounds workArea, Double popupWidth, Double popupHeight, Double cursorXDips, Double cursorYDips) #Returns:
PopupPlacementComputes a popup placement near the cursor while clamping the result into the visible work area.
Parameters
- workArea IntelligenceX.Presentation.PopupBounds
- popupWidth System.Double
- popupHeight System.Double
- cursorXDips System.Double
- cursorYDips System.Double
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object