ShapeLineStyle

ShapeLineStyle enumeration

يحدد نمط الخط المركب لـShape .

public enum ShapeLineStyle

قيم

اسمقيمةوصف
Single0سطر واحد.
Double1خطوط مزدوجة متساوية العرض.
ThickThin2خطوط مزدوجة، واحدة سميكة، وأخرى رفيعة.
ThinThick3خطوط مزدوجة، واحدة رفيعة، وأخرى سميكة.
Triple4ثلاثة خطوط، رفيع، سميك، رفيع.
Default0القيمة الافتراضية هيSingle .

أمثلة

يوضح كيفية تغيير خصائص السكتة الدماغية.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertShape(ShapeType.Rectangle, RelativeHorizontalPosition.LeftMargin, 100,
    RelativeVerticalPosition.TopMargin, 100, 200, 200, WrapType.None);

//الأشكال الأساسية، مثل المستطيل، تحتوي على جزأين مرئيين.
// 1 - التعبئة، والتي تنطبق على المنطقة داخل مخطط الشكل:
shape.Fill.ForeColor = Color.White;

// 2 - الخط الذي يحدد الخطوط العريضة للشكل:
// تعديل خصائص مختلفة لخط هذا الشكل.
Stroke stroke = shape.Stroke;
stroke.On = true;
stroke.Weight = 5;
stroke.Color = Color.Red;
stroke.DashStyle = DashStyle.ShortDashDotDot;
stroke.JoinStyle = JoinStyle.Miter;
stroke.EndCap = EndCap.Square;
stroke.LineStyle = ShapeLineStyle.Triple;
stroke.Fill.TwoColorGradient(Color.Red, Color.Blue, GradientStyle.Vertical, GradientVariant.Variant1);

doc.Save(ArtifactsDir + "Shape.Stroke.docx");

أنظر أيضا