---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/PatternFormat
---

# PatternFormat

## Overview

`PatternFormat` is a class in Aspose.Slides FOSS for Java.
Inherits from: `PVIObject`, `IPatternFormat`.

Represents a pattern fill format.

This class provides 11 methods for working with PatternFormat objects in Java programs.
Available methods include: `PVIObject`, `PatternFormat`, `asIPresentationComponent`, `getBackColor`, `getForeColor`, `getPatternStyle`, `getPresentation`, `getSlide`, `initInternal`, `setPatternStyle`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `backColor`, `foreColor`, `patternStyle`, `presentation`, `slide`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `patternStyle` | `PatternStyle` | Read | Gets the pattern style. |
| `foreColor` | `IColorFormat` | Read | Gets the fore color. |
| `backColor` | `IColorFormat` | Read | Gets the back color. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `PatternFormat(pattFill: Element, saveCallback: Runnable)` | Creates a new PatternFormat backed by the given {@code } element. |
| `PatternFormat()` | Creates an uninitialized PatternFormat. |
| `initInternal(pattFillElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` | Internal initialization. |
| `getPatternStyle()` → `PatternStyle` | Returns the pattern style. |
| `setPatternStyle(value: PatternStyle)` | Sets the pattern style value. |
| `getForeColor()` → `IColorFormat` | Returns the fore color. |
| `getBackColor()` → `IColorFormat` | Returns the back color. |
| `PVIObject()` | Creates a PVIObject with no parent slide. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this object as an {@link IPresentationComponent}. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)