MindFusion.Wpf Pack Programmer's Guide
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.Wpf
Assembly: MindFusion.Scheduling.Wpf

 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

Calendar Members
Calendar Class
MindFusion.Scheduling.Wpf Namespace