Skip to main content

NoFill Class

No fill (transparent).

Declaration

public class NoFill extends OutlineFill

Remarks

The following code snippet removes the fill from a shape to make it transparent:

import com.devexpress.docs.presentation.*;
import com.devexpress.docs.office.*;

// Create a rounded rectangular shape.
Shape shape = new Shape(ShapeType.getRoundedRectangle(), 30, 30, 2000, 1000);

// Remove the fill to make the shape transparent.
shape.setFill(new NoFill());

// Get the first slide in the presentation.
Slide slide = presentation.getSlides().getFirst();

// Add the shape to the first slide.
slide.getShapes().add(shape);

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object

NoFill()

Initializes a new instance of the NoFill class.

Declaration

public NoFill()

Methods

deepClone() Method

Returns a deep copy of this NoFill instance.

Declaration

public NoFill deepClone()

Returns

Type Description
NoFill

A deep copy of this NoFill.

getType() Method

Gets the type of the fill.

Declaration

public FillType getType()

Returns

Type Description
FillType

The type of the fill.