PocketPlanner Programmer's Guide

Calendar.GetElementBounds Method

See Also

Gets the bounding rectangle of a particular calendar element.

Namespace: MindFusion.Scheduling.Compact
Assembly: PocketPlanner

 Syntax

C#

public Rectangle GetElementBounds (
    CalendarElement element,
    int index
)

Visual Basic

Public Function GetElementBounds ( _
    element As CalendarElement, _
    index As Integer _
) As Rectangle

 Parameters

element
The type of the element whose bounds to retrieve.
index
The index of the element, if there is more than one element of the specified type.

 Return Value

The bounding rectangle of the specified element or Rectangle.Empty if the element is either not present in the current view or not visible in the current viewport.

 See Also