Spread for ASP.NET 13 Product Documentation
FarPoint.Web.Spread.Extender Assembly / FarPoint.Web.Spread.Extender Namespace / SlideShowCellType Class / PreviousButtonID Property
Example


In This Topic
    PreviousButtonID Property
    In This Topic
    Gets or sets the identifier of the control that moves the slide show to the previous slide.
    Syntax
    'Declaration
     
    Public Property PreviousButtonID As String
    'Usage
     
    Dim instance As SlideShowCellType
    Dim value As String
     
    instance.PreviousButtonID = value
     
    value = instance.PreviousButtonID
    public string PreviousButtonID {get; set;}

    Property Value

    String containing the identifier
    Example
    This example creates a slide show cell type.
    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;
        }
    
    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
    See Also