LineFormat

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 ILineFormat

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getFillFormat()ILineFillFormatEnumerationsתכונות מילוי של הקו.
getWidth() / setWidth(double)doubleקריאה/כתיבהרוחב הקו בנקודות.
getDashStyle() / setDashStyle(LineDashStyle)LineDashStyleקריאה/כתיבהסגנון קו מקווקו (אחיד, מקווקו, נקודה, וכו’).
getCapStyle() / setCapStyle(LineCapStyle)LineCapStyleקריאה/כתיבהסגנון קצה הקו (שטוח, עגול, מרובע).
getStyle()LineStyleEnumerationsסגנון קו (אחד, כפול, וכו’).
getCustomDashPattern() / setCustomDashPattern(List<Double>)List<Double>קריאה/כתיבהערכי תבנית מקווקו מותאמת.
isFormatNotDefined()booleanEnumerationsהאם לא הוגדר פורמט קו.

דוגמאות שימוש

הגדר מתאר צורה

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

ראה גם

 עברית