Back to Devexpress

PatternFill Class

officefileapi-devexpress-dot-docs-dot-presentation-89d6bb4e.md

latest2.6 KB
Original Source

PatternFill Class

A pattern fill that can be applied to a shape or slide background.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public class PatternFill :
    Fill
vb
Public Class PatternFill
    Inherits Fill

The following members return PatternFill objects:

Remarks

The following code snippet configures a slide background to use a pattern fill with specified pattern type, foreground color, and background color:

csharp
using DevExpress.Docs.Presentation;
using DevExpress.Drawing;
using System.Drawing;

    Slide slide = new Slide(new SlideLayout(layoutType: SlideLayoutType.Blank, name: "slide"));
    PatternFill fill = new PatternFill(patternType: FillPatternType.Vertical, Color.White, Color.Lavender);
    slide.Background = new CustomSlideBackground(fill);
vb
Imports DevExpress.Docs
Imports DevExpress.Docs.Presentation
Imports DevExpress.Drawing
Imports System.Drawing

    Dim slide As New Slide(New SlideLayout(SlideLayoutType.Blank, "slide"))
    Dim fill As New PatternFill(FillPatternType.Vertical, Color.White, Color.Lavender)
    slide.Background = New CustomSlideBackground(fill)

For more information on how to customize the slide or shape fill, refer to the following help topics:

Implements

ICloneable

Inheritance

Object PresentationObject Fill PatternFill

See Also

PatternFill Members

DevExpress.Docs.Presentation Namespace