Spread for ASP.NET 7.0 Product Documentation
Loop Property
See Also  Example Support Options
FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > SlideShowCellType Class : Loop Property


Glossary Item Box

Gets or sets whether the slide show loops around from the first or last slide

Syntax

Visual Basic (Declaration) 
Public Property Loop As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SlideShowCellType
Dim value As Boolean
 
instance.Loop = value
 
value = instance.Loop
C# 
public bool Loop {get; set;}

Property Value

Boolean: true if slide show loops; false otherwise

Remarks

The slide show can loop back to the first slide after the last slide and it can loop to the last slide if you are at the first slide and backup.

Example

This example creates a slide show cell type.
C#Copy Code
FarPoint.Web.Spread.Extender.SlideShowCellType ss = new FarPoint.Web.Spread.Extender.SlideShowCellType();
ss.Loop = true;
ss.PlayInterval = 1000;
ss.PlayButtonID = "Play";
ss.PlayButtonText = "Play";
ss.NextButtonID = "Next";
ss.StopButtonText = "Stop";
ss.PreviousButtonID = "Prev";
ss.StopButtonText = "Stop";
ss.SlideShowServiceMethod = "GetSlides";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = ss;

[Services.WebMethod()]
    [Script.Services.ScriptMethod()]
    public static AjaxControlToolkit.Slide[] GetSlides() {
        List items = new List(Of, AjaxControlToolkit.Slide);
        items.Add(new AjaxControlToolkit.Slide("./images/gnome-applications.png", "", ""));
        items.Add(new AjaxControlToolkit.Slide("./images/gnome-graphics.png", "", ""));
        items.Add(new AjaxControlToolkit.Slide("./images/gnome-joystick.png", "", ""));
        items.Add(new AjaxControlToolkit.Slide("./images/gnome-reboot.png", "", ""));
        items.Add(new AjaxControlToolkit.Slide("./images/gnome-shutdown.png", "", ""));
        items.Add(new AjaxControlToolkit.Slide("./images/gnome-window-manager.png", "", ""));
        return items.ToArray;
    }
Visual BasicCopy Code
Dim ss As New FarPoint.Web.Spread.Extender.SlideShowCellType
ss.Loop = True
ss.PlayInterval = 1000
ss.PlayButtonID = "Play"
ss.PlayButtonText = "Play"
ss.NextButtonID = "Next"
ss.StopButtonText = "Stop"
ss.PreviousButtonID = "Prev"
ss.StopButtonText = "Stop"
ss.SlideShowServiceMethod = "GetSlides"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = ss

<Services.WebMethod(), 
     Script.Services.ScriptMethod()>
Public Shared Function GetSlides() As AjaxControlToolkit.Slide()
        Dim items As New List(Of AjaxControlToolkit.Slide)
        items.Add(New AjaxControlToolkit.Slide("./images/gnome-applications.png", "", ""))
        items.Add(New AjaxControlToolkit.Slide("./images/gnome-graphics.png", "", ""))
        items.Add(New AjaxControlToolkit.Slide("./images/gnome-joystick.png", "", ""))
        items.Add(New AjaxControlToolkit.Slide("./images/gnome-reboot.png", "", ""))
        items.Add(New AjaxControlToolkit.Slide("./images/gnome-shutdown.png", "", ""))
        items.Add(New AjaxControlToolkit.Slide("./images/gnome-window-manager.png", "", ""))
        Return items.ToArray
    End Function

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.