Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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