menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IBackground - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IBackground

    Represents the background of a slide.

    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.Portable.dll
    Syntax
    public interface IBackground

    Properties

    Fill

    Gets an IFill instance that contains fill formatting properties. Read-only.

    Declaration
    IFill Fill { get; }
    Property Value
    Type
    IFill
    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Create();
    //Add a slide to the presentation
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Create instance for slide background
    IBackground background = slide.Background;
    //Set the fill type for background as Pattern fill
    background.Fill.FillType = FillType.Pattern;
    //Set the pattern
    background.Fill.PatternFill.Pattern = PatternFillType.DashedHorizontal;
    //set the fore color of pattern
    background.Fill.PatternFill.ForeColor = ColorObject.Lavender;
    //Set the back color of pattern
    background.Fill.PatternFill.BackColor = ColorObject.Brown;
    //Save the presentation
    presentation.Save("Output.pptx");
    //Close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation__1 As IPresentation = Presentation.Create()
    'Add a slide to the presentation
    Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank)
    'Create instance for slide background
    Dim background As IBackground = slide.Background
    'Set the fill type for background as Pattern fill
    background.Fill.FillType = FillType.Pattern
    'Set the pattern
    background.Fill.PatternFill.Pattern = PatternFillType.DashedHorizontal
    'set the fore color of pattern
    background.Fill.PatternFill.ForeColor = ColorObject.Lavender
    'Set the back color of pattern
    background.Fill.PatternFill.BackColor = ColorObject.Brown
    'Save the presentation
    presentation__1.Save("Output.pptx")
    'Close the presentation
    presentation__1.Close()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved