RelativeHorizontalPosition
محتويات
[
يخفي
]ShapeBase.RelativeHorizontalPosition property
يحدد بالنسبة إلى ما يتم وضع الشكل أفقيًا.
public RelativeHorizontalPosition RelativeHorizontalPosition { get; set; }
ملاحظات
القيمة الافتراضية هيColumn.
له تأثير فقط على الأشكال العائمة في المستوى العلوي.
أمثلة
يوضح كيفية إدراج صورة عائمة في وسط الصفحة.
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 RelativeHorizontalPosition
- class ShapeBase
- مساحة الاسم Aspose.Words.Drawing
- المجسم Aspose.Words