Orientation
محتويات
[
يخفي
]AxisTickLabels.Orientation property
يحصل على اتجاه نص علامة التجزئة أو يعينه.
public ShapeTextOrientation Orientation { get; set; }
ملاحظات
القيمة الافتراضية هيHorizontal.
لاحظ أن بعضShapeTextOrientation
لا تؤثر القيم على اتجاه text في محاور القيمة.
أمثلة
يوضح كيفية تغيير الاتجاه والدوران لملصقات علامات المحور.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// إدراج مخطط عمودي.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
AxisTickLabels xTickLabels = shape.Chart.AxisX.TickLabels;
AxisTickLabels yTickLabels = shape.Chart.AxisY.TickLabels;
// تعيين اتجاه علامة محور الدوران.
xTickLabels.Orientation = ShapeTextOrientation.VerticalFarEast;
xTickLabels.Rotation = -30;
yTickLabels.Orientation = ShapeTextOrientation.Horizontal;
yTickLabels.Rotation = 45;
doc.Save(ArtifactsDir + "Charts.TickLabelsOrientationRotation.docx");
أنظر أيضا
- enum ShapeTextOrientation
- class AxisTickLabels
- مساحة الاسم Aspose.Words.Drawing.Charts
- المجسم Aspose.Words