Interface ISlideShowTransition
Represents the slide show transition.
Namespace: Syncfusion.Presentation
Assembly: Syncfusion.Presentation.UWP.dll
Syntax
public interface ISlideShowTransition
Properties
Duration
Get the Duration of the Slide Transition.
Declaration
float Duration { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
Max Duration is 59 seconds(0 to 59).
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
// Set the duration value(in seconds) for slide transition effect
slide.SlideTransition.Duration = 30;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Set the duration value(in seconds) for slide transition effect
slide.SlideTransition.Duration = 30
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()
Speed
Get the Speed of the Transition effect
Declaration
TransitionSpeed Speed { get; set; }
Property Value
Type |
---|
TransitionSpeed |
Remarks
Transition duration value will change based on speed. The duration values are Fast - 0.5 sec, Medium - 0.75 sec, Slow - 1.0 sec
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
// Add the speed value for the transition effect
slide.SlideTransition.Speed = TransitionSpeed.Slow;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Add the speed value for the transition effect
slide.SlideTransition.Speed = TransitionSpeed.Slow
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()
TimeDelay
Get the advance time value for navigating to next slide.
Declaration
float TimeDelay { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
Max Advance time value is 86399.
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
// Set the next slide advance time bool value
slide.SlideTransition.TriggerOnTimeDelay = true;
// Set the advance on time value for next slide
slide.SlideTransition.TimeDelay = 25000;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Set the next slide advance time bool value
slide.SlideTransition.TriggerOnTimeDelay = True
' Set the advance on time value for next slide
slide.SlideTransition.TimeDelay = 25000
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()
TransitionEffect
Get the Transition effect type
Declaration
TransitionEffect TransitionEffect { get; set; }
Property Value
Type |
---|
TransitionEffect |
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()
TransitionEffectOption
Get the Transition effect SubType(Direction)
Declaration
TransitionEffectOption TransitionEffectOption { get; set; }
Property Value
Type |
---|
TransitionEffectOption |
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
// Add subtype for the transition effect
slide.SlideTransition.TransitionEffectOption = TransitionEffectOption.Right;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Add subtype for the transition effect
slide.SlideTransition.TransitionEffectOption = TransitionEffectOption.Right
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()
TriggerOnClick
Get the Slide Transition Mouse On Click value
Declaration
bool TriggerOnClick { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
//Set the mouse on click bool value
slide.SlideTransition.TriggerOnClick = true;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Set the mouse on click bool value
slide.SlideTransition.TriggerOnClick = true
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()
TriggerOnTimeDelay
Get the Next Slide Advance Time Check Value
Declaration
bool TriggerOnTimeDelay { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
// Create a new presentation.
IPresentation ppDoc = Presentation.Create();
// Add a slide to the presentation.
ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank);
// Add shape on the slide
IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150);
// Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble;
// Set the next slide advance time bool value
slide.SlideTransition.TriggerOnTimeDelay = true;
// Save the presentation file
ppDoc.Save("Sample.pptx");
// Close the presentation file
ppDoc.Close();
' Create a new presentation.
Dim ppDoc As IPresentation = Presentation.Create()
' Add a slide to the presentation.
Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank)
' Add shape on the slide
Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150)
' Add slide transition effect on the slide
slide.SlideTransition.TransitionEffect = TransitionEffect.PageCurlDouble
' Set the next slide advance time bool value
slide.SlideTransition.TriggerOnTimeDelay = True
' Save the presentation file
ppDoc.Save("Sample.pptx")
' Close the presentation file
ppDoc.Close()