Skip to main content

AppointmentViewInfo.GetVisualBounds() Method

Obtains the location and size of an appointment’s visual representation in pixels, relative to the upper-left corner of the visible area of the Scheduler view.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public Rectangle GetVisualBounds()

Returns

Type Description
Rectangle

A Rectangle object which is the appointment’s bounding rectangle in the client coordinate system (in pixels).

Remarks

The GetVisualBounds returns a rectangle with coordinates relative to the upper-left corner of the visible area of the Scheduler view. Thus, unlike the SchedulerViewInfoBase.Bounds property value, the result of the GetVisualBounds method depends on the scroll position in the view.

Tip

The AppointmentViewInfo.ConvertToVisualBounds method allows you to map coordinates obtained with the ViewInfoItem.Bounds property to the coordinate system used in mouse events.

See Also