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, IFillParamSourceEnumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
getFillType() / setFillType(FillType) | FillType | Read/Write | Fülltyp (SOLID, GRADIENT, PATTERN, PICTURE, NO_FILL). |
getSolidFillColor() | IColorFormat | Enumerations | Farbe für solid Füllungen. |
getGradientFormat() | IGradientFormat | Enumerations | Gradient-Füllungseigenschaften. |
getPatternFormat() | IPatternFormat | Enumerations | Pattern-Füllungseigenschaften. |
getPictureFillFormat() | IPictureFillFormat | Enumerations | Picture-Füllungseigenschaften. |
getRotateWithShape() / setRotateWithShape(NullableBool) | NullableBool | Read/Write | Ob 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);