Orientation
Contenu
[
Cacher
]AxisTickLabels.Orientation property
Obtient ou définit l’orientation du texte de l’étiquette de graduation.
public ShapeTextOrientation Orientation { get; set; }
Remarques
La valeur par défaut estHorizontal.
Notez que certainsShapeTextOrientation
les valeurs n’affectent pas l’orientation de l’étiquette de graduation text dans les axes de valeurs.
Exemples
Montre comment modifier l’orientation et la rotation des étiquettes de graduation des axes.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Insérer un graphique à colonnes.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
AxisTickLabels xTickLabels = shape.Chart.AxisX.TickLabels;
AxisTickLabels yTickLabels = shape.Chart.AxisY.TickLabels;
// Définir l'orientation et la rotation de l'étiquette de graduation de l'axe.
xTickLabels.Orientation = ShapeTextOrientation.VerticalFarEast;
xTickLabels.Rotation = -30;
yTickLabels.Orientation = ShapeTextOrientation.Horizontal;
yTickLabels.Rotation = 45;
doc.Save(ArtifactsDir + "Charts.TickLabelsOrientationRotation.docx");
Voir également
- enum ShapeTextOrientation
- class AxisTickLabels
- espace de noms Aspose.Words.Drawing.Charts
- Assemblée Aspose.Words