LineFormat — Aspose.Slides FOSS for Java API Reference
Enumerations LineFormat המחלקה מייצגת את פורמט הקו (מתאר הצורה). היא מממשת ILineFormat.
Enumerations: org.aspose.slides.foss
import org.aspose.slides.foss.*;public class LineFormat implements ILineFormatEnumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
getFillFormat() | ILineFillFormat | Enumerations | תכונות מילוי של הקו. |
getWidth() / setWidth(double) | double | קריאה/כתיבה | רוחב הקו בנקודות. |
getDashStyle() / setDashStyle(LineDashStyle) | LineDashStyle | קריאה/כתיבה | סגנון קו מקווקו (אחיד, מקווקו, נקודה, וכו’). |
getCapStyle() / setCapStyle(LineCapStyle) | LineCapStyle | קריאה/כתיבה | סגנון קצה הקו (שטוח, עגול, מרובע). |
getStyle() | LineStyle | Enumerations | סגנון קו (אחד, כפול, וכו’). |
getCustomDashPattern() / setCustomDashPattern(List<Double>) | List<Double> | קריאה/כתיבה | ערכי תבנית מקווקו מותאמת. |
isFormatNotDefined() | boolean | Enumerations | האם לא הוגדר פורמט קו. |
דוגמאות שימוש
הגדר מתאר צורה
import org.aspose.slides.foss.*;
import java.awt.Color;
IAutoShape shape = slide.getShapes().addAutoShape(
ShapeType.RECTANGLE, 50, 50, 200, 100);
ILineFormat line = shape.getLineFormat();
line.setWidth(3.0);
line.setDashStyle(LineDashStyle.DASH);
line.getFillFormat().setFillType(FillType.SOLID);
line.getFillFormat().getSolidFillColor().setColor(Color.BLACK);