Orientation

AxisTickLabels.Orientation property

Ottiene o imposta l’orientamento del testo dell’etichetta di spunta.

public ShapeTextOrientation Orientation { get; set; }

Osservazioni

Il valore predefinito èHorizontal.

Nota che alcuniShapeTextOrientation i valori non influenzano l’orientamento dell’etichetta di spunta text negli assi dei valori.

Esempi

Mostra come modificare l’orientamento e la rotazione delle etichette delle tacche degli assi.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Inserisci un grafico a colonne.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
AxisTickLabels xTickLabels = shape.Chart.AxisX.TickLabels;
AxisTickLabels yTickLabels = shape.Chart.AxisY.TickLabels;

// Imposta l'orientamento e la rotazione dell'etichetta di spunta dell'asse.
xTickLabels.Orientation = ShapeTextOrientation.VerticalFarEast;
xTickLabels.Rotation = -30;
yTickLabels.Orientation = ShapeTextOrientation.Horizontal;
yTickLabels.Rotation = 45;

doc.Save(ArtifactsDir + "Charts.TickLabelsOrientationRotation.docx");

Guarda anche