Skip to main content
All docs
V26.1
  • Presentation.ResizeSlides(SlideSize, ResizeMode) Method

    Resizes all slides in the presentation to the specified size.

    Namespace: DevExpress.Docs.Presentation

    Assembly: DevExpress.Docs.Presentation.v26.1.dll

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public void ResizeSlides(
        SlideSize newSize,
        ResizeMode mode = ResizeMode.Center
    )

    Parameters

    Name Type Description
    newSize SlideSize

    A new slide size to which all slides in the presentation are resized.

    Optional Parameters

    Name Type Default Description
    mode ResizeMode Center

    The mode that determines how the slides are resized.

    Remarks

    The following code snippet resizes all slides in a presentation to a new size:

    using DevExpress.Docs.Presentation;
    //...
    
    presentation.ResizeSlides(new SlideSize(640, 360), ResizeMode.EnsureFit);
    

    Refer to the following help topic for more information on how to resize slides in a presentation: DevExpress Presentation API Library: Specify Slide Size and Orientation.

    See Also