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

Declaration

public Rectangle GetVisualBounds()
Public Function GetVisualBounds As Rectangle

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