LineFormat — Aspose.Slides FOSS for Java API Reference
Example LineFormat کلاس نمایانگر قالب یک خط (خط بیرونی شکل) است. این کلاس پیادهسازی میکند ILineFormat.
Example: org.aspose.slides.foss
import org.aspose.slides.foss.*;public class LineFormat implements ILineFormatExample
| Example | Example | Example | Example |
|---|---|---|---|
getFillFormat() | ILineFillFormat | Example | ویژگیهای پر کردن خط. |
getWidth() / setWidth(double) | double | خواندن/نوشتن | عرض خط بر حسب نقطه. |
getDashStyle() / setDashStyle(LineDashStyle) | LineDashStyle | خواندن/نوشتن | سبک خط تیره (solid, dash, dot, etc.). |
getCapStyle() / setCapStyle(LineCapStyle) | LineCapStyle | خواندن/نوشتن | سبک سر خط (flat, round, square). |
getStyle() | LineStyle | Example | سبک خط (single, double, etc.). |
getCustomDashPattern() / setCustomDashPattern(List<Double>) | List<Double> | خواندن/نوشتن | مقادیر الگوی خط تیره سفارشی. |
isFormatNotDefined() | boolean | Example | آیا قالب خطی تعریف نشده است. |
نمونههای استفاده
تنظیم خط دور شکل
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);