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

# LineFillFormat

## Overview

`LineFillFormat` is a class in Aspose.Slides FOSS for Java.
Inherits from: `FillFormat`, `ILineFillFormat`.

Represents the fill format of a line.

This class declares 19 methods for LineFillFormat objects in Java programs.
Available methods include: `FillFormat`, `LineFillFormat`, `PVIObject`, `asIPresentationComponent`, `getFillType`, `getGradientFormat`, `getPatternFormat`, `getPictureFillFormat`, `getPresentation`, `getRotateWithShape`, `getSlide`, `getSolidFillColor`, and 4 additional methods.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `fillType`, `gradientFormat`, `patternFormat`, `pictureFillFormat`, `presentation`, `rotateWithShape`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `fillType` | `FillType` | Read/Write | Gets or sets the fill type. |
| `solidFillColor` | `IColorFormat` | Read | Gets the solid fill color. |
| `gradientFormat` | `IGradientFormat` | Read | Gets the gradient format. |
| `patternFormat` | `IPatternFormat` | Read | Gets the pattern format. |
| `pictureFillFormat` | `IPictureFillFormat` | Read | Gets the picture fill format. |
| `rotateWithShape` | `NullableBool` | Read/Write | Gets or sets the rotate with shape. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `LineFillFormat(lnElement: Element, saveCallback: Runnable)` | Creates a new LineFillFormat backed by the given {@code } element. |
| `LineFillFormat()` | Creates an uninitialized LineFillFormat. |
| `initInternal(lnElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` | Internal initialization for deferred construction. |
| `resetStyleLnRef()` | Resets the {@code } attribute to {@code "0"} in the parent shape's {@code 

} element so that the explicit line fill takes priority over the theme reference. |
| `FillFormat(parentElement: Element, saveCallback: Runnable)` | Creates a new FillFormat backed by the given parent XML element. |
| `FillFormat()` | Creates an uninitialized FillFormat. |
| `getFillType()` → `FillType` | Returns the fill type. |
| `setFillType(value: FillType)` | Sets the fill type value. |
| `getSolidFillColor()` → `IColorFormat` | Returns the solid fill color. |
| `getGradientFormat()` → `IGradientFormat` | Returns the gradient format. |
| `getPatternFormat()` → `IPatternFormat` | Returns the pattern format. |
| `getPictureFillFormat()` → `IPictureFillFormat` | Returns the picture fill format. |
| `getRotateWithShape()` → `NullableBool` | Returns the rotate with shape. |
| `setRotateWithShape(value: NullableBool)` | Sets the rotate with shape value. |
| `PVIObject()` | Creates a PVIObject with no parent slide. |
| `PVIObject(parentSlide: IBaseSlide)` | Creates a PVIObject associated with the given slide. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `getPresentation()` → `IPresentation` | Creates a new LineFillFormat backed by the given {@code } element. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this object as an {@link IPresentationComponent}. |

## See Also

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