Orientation
Innehåll
[
Dölj
]AxisTickLabels.Orientation property
Hämtar eller anger orienteringen för texten i tick-etiketten.
public ShapeTextOrientation Orientation { get; set; }
Anmärkningar
Standardvärdet ärHorizontal.
Observera att vissaShapeTextOrientation
Värden påverkar inte orienteringen av skalstämpeln text i värdeaxlar.
Exempel
Visar hur man ändrar orientering och rotation för axeltacketiketter.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Infoga ett kolumndiagram.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
AxisTickLabels xTickLabels = shape.Chart.AxisX.TickLabels;
AxisTickLabels yTickLabels = shape.Chart.AxisY.TickLabels;
// Ställ in orientering och rotation för axeltacketiketter.
xTickLabels.Orientation = ShapeTextOrientation.VerticalFarEast;
xTickLabels.Rotation = -30;
yTickLabels.Orientation = ShapeTextOrientation.Horizontal;
yTickLabels.Rotation = 45;
doc.Save(ArtifactsDir + "Charts.TickLabelsOrientationRotation.docx");
Se även
- enum ShapeTextOrientation
- class AxisTickLabels
- namnutrymme Aspose.Words.Drawing.Charts
- hopsättning Aspose.Words