GradientFormat / PatternFormat

GradientFormat / PatternFormat — Aspose.Slides FOSS for Java API Reference

Enumerations GradientFormat ו PatternFormat מחלקות שולטות בתכונות המילוי של גרדיאנט ותבנית לצורות. שתיהן מרחיבות PVIObject.

Enumerations: org.aspose.slides.foss

import org.aspose.slides.foss.*;

GradientFormat

public class GradientFormat extends PVIObject implements IGradientFormat, IFillParamSource

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getGradientDirection() / setGradientDirection(GradientDirection)GradientDirectionקריאה/כתיבהכיוון הגרדיאנט (קווי, מסלול, וכו’).
getGradientShape()GradientShapeEnumerationsצורת הגרדיאנט.
getLinearGradientAngle() / setLinearGradientAngle(double)doubleקריאה/כתיבהזווית לגרדיאנטים קוויים (מעלות).
getLinearGradientScaled() / setLinearGradientScaled(NullableBool)NullableBoolקריאה/כתיבההאם הגרדיאנט מותאם לגודל.
getTileFlip() / setTileFlip(TileFlip)TileFlipקריאה/כתיבהמצב הפיכת אריחים.
getGradientStops()IGradientStopCollectionEnumerationsאוסף של נקודות עצירה של גרדיאנט.

הפניה ל-API של המחלקה CompositeNode ב‑aspose-note גרסה 26.3.1. מחלקת בסיס לכל צמתים במסמך שיכולים להכיל צמתים ילדים.

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.GRADIENT);

IGradientFormat grad = fill.getGradientFormat();
grad.setGradientDirection(GradientDirection.FROM_CORNER1);
grad.setLinearGradientAngle(45.0);

PatternFormat

public class PatternFormat extends PVIObject implements IPatternFormat

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getPatternStyle() / setPatternStyle(PatternStyle)PatternStyleקריאה/כתיבהסגנון תבנית (למשל,., PERCENT05, HORIZONTAL, וכו’).
getForeColor()IColorFormatEnumerationsצבע הקדמי של התבנית.
getBackColor()IColorFormatEnumerationsצבע הרקע של התבנית.

הפניה ל-API של המחלקה CompositeNode ב‑aspose-note גרסה 26.3.1. מחלקת בסיס לכל צמתים במסמך שיכולים להכיל צמתים ילדים.

IFillFormat fill = shape.getFillFormat();
fill.setFillType(FillType.PATTERN);
IPatternFormat pattern = fill.getPatternFormat();
pattern.setPatternStyle(PatternStyle.HORIZONTAL);
pattern.getForeColor().setColor(Color.BLACK);
pattern.getBackColor().setColor(Color.WHITE);

ראה גם

 עברית