Search
Calendar.SetViewport Method
See Also
 






Sets the displayed time interval to the specified range, optionally changing the view resolution. If the interval is outside of the view range, the view range is expanded to include the interval.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

public void SetViewport (
    DateTime start,
    DateTime end,
    bool adjustResolution
)

Visual Basic  Copy Code

Public Sub SetViewport( _
    start As DateTime, _
    end As DateTime, _
    adjustResolution As Boolean _
)

 Parameters

start

The start of the interval to display.

end

The end of the interval to display.

adjustResolution

true to change the view resolution if necessary; false to keep the current resolution and adjust only the scale.

 Remarks

This method operates only in Resource view. In addition, the resource view must not have hidden days or hours.

 See Also