LineFormat — Aspose.Slides FOSS for Java API Reference
Example LineFormat class تمثل تنسيق الخط (مخطط الشكل). إنها تنفذ 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 | قراءة/كتابة | نمط الشرط (متصل، متقطع، نقطة، إلخ). |
getCapStyle() / setCapStyle(LineCapStyle) | LineCapStyle | قراءة/كتابة | نمط طرف الخط (مسطح، مستدير، مربع). |
getStyle() | LineStyle | Example | نمط الخط (أحادي، مزدوج، إلخ). |
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);