RelativeVerticalPosition
ShapeBase.RelativeVerticalPosition property
يحدد بالنسبة إلى الوضع الرأسي للشكل.
public RelativeVerticalPosition RelativeVerticalPosition { get; set; }
ملاحظات
القيمة الافتراضية هيParagraph.
له تأثير فقط على الأشكال العائمة في المستوى العلوي.
أمثلة
يوضح كيفية إدراج صورة عائمة في وسط الصفحة.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// قم بإدراج صورة عائمة ستظهر خلف النص المتداخل وقم بمحاذاتها مع مركز الصفحة.
Shape shape = builder.InsertImage(ImageDir + "Logo.jpg");
shape.WrapType = WrapType.None;
shape.BehindText = true;
shape.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
shape.RelativeVerticalPosition = RelativeVerticalPosition.Page;
shape.HorizontalAlignment = HorizontalAlignment.Center;
shape.VerticalAlignment = VerticalAlignment.Center;
doc.Save(ArtifactsDir + "Image.CreateFloatingPageCenter.docx");
أنظر أيضا
- enum RelativeVerticalPosition
- class ShapeBase
- مساحة الاسم Aspose.Words.Drawing
- المجسم Aspose.Words