Gets or sets the interval in milliseconds before switching to the next slide.
Syntax
Visual Basic (Declaration) | |
---|
Public Property PlayInterval As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SlideShowCellType
Dim value As Integer
instance.PlayInterval = value
value = instance.PlayInterval |
C# | |
---|
public int PlayInterval {get; set;} |
Property Value
Integer number of milliseconds between slides
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 Basic | Copy 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also