FillFormat — Aspose.Slides FOSS for Java API Reference

Enumerations FillFormat class repräsentiert Füllformatierungseigenschaften für shapes. Sie unterstützt solid, gradient, pattern und picture Füllungen. Sie erweitert PVIObject und implementiert IFillFormat und IFillParamSource.

Enumerations: org.aspose.slides.foss

import org.aspose.slides.foss.*;
public class FillFormat extends PVIObject implements IFillFormat, IFillParamSource

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getFillType() / setFillType(FillType)FillTypeRead/WriteFülltyp (SOLID, GRADIENT, PATTERN, PICTURE, NO_FILL).
getSolidFillColor()IColorFormatEnumerationsFarbe für solid Füllungen.
getGradientFormat()IGradientFormatEnumerationsGradient-Füllungseigenschaften.
getPatternFormat()IPatternFormatEnumerationsPattern-Füllungseigenschaften.
getPictureFillFormat()IPictureFillFormatEnumerationsPicture-Füllungseigenschaften.
getRotateWithShape() / setRotateWithShape(NullableBool)NullableBoolRead/WriteOb die Füllung mit der shape rotiert.

Anwendungsbeispiele

Einfarbige Füllung

import org.aspose.slides.foss.*;
import java.awt.Color;

IAutoShape shape = slide.getShapes().addAutoShape(
    ShapeType.RECTANGLE, 50, 50, 200, 100);
IFillFormat fill = shape.getFillFormat();
fill.setFillType(FillType.SOLID);
fill.getSolidFillColor().setColor(Color.RED);

Keine Füllung (Transparent)

shape.getFillFormat().setFillType(FillType.NO_FILL);

Siehe auch

 Deutsch