FillFormat — Aspose.Slides FOSS for Java API Reference
Enumerations FillFormat class představuje vlastnosti formátování výplně pro tvary. Podporuje plné, gradientní, vzorové a obrázkové výplně. Rozšiřuje PVIObject a implementuje IFillFormat a 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 | Typ výplně (SOLID, GRADIENT, PATTERN, PICTURE, NO_FILL). |
getSolidFillColor() | IColorFormat | Enumerations | Barva pro plné výplně. |
getGradientFormat() | IGradientFormat | Enumerations | Vlastnosti gradientní výplně. |
getPatternFormat() | IPatternFormat | Enumerations | Vlastnosti vzorové výplně. |
getPictureFillFormat() | IPictureFillFormat | Enumerations | Vlastnosti obrázkové výplně. |
getRotateWithShape() / setRotateWithShape(NullableBool) | NullableBool | Read/Write | Zda se výplň otáčí spolu s tvarem. |
Příklady použití
Plná výplň
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);Žádná výplň (průhledná)
shape.getFillFormat().setFillType(FillType.NO_FILL);