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 ILineFormat

Example

ExampleExampleExampleExample
getFillFormat()ILineFillFormatExampleخصائص التعبئة للخط.
getWidth() / setWidth(double)doubleقراءة/كتابةعرض الخط بالنقاط.
getDashStyle() / setDashStyle(LineDashStyle)LineDashStyleقراءة/كتابةنمط الشرط (متصل، متقطع، نقطة، إلخ).
getCapStyle() / setCapStyle(LineCapStyle)LineCapStyleقراءة/كتابةنمط طرف الخط (مسطح، مستدير، مربع).
getStyle()LineStyleExampleنمط الخط (أحادي، مزدوج، إلخ).
getCustomDashPattern() / setCustomDashPattern(List<Double>)List<Double>قراءة/كتابةقيم نمط الشرط المخصص.
isFormatNotDefined()booleanExampleما إذا لم يتم تعريف تنسيق السطر.

أمثلة الاستخدام

تعيين مخطط الشكل

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

انظر أيضًا

 العربية