Rotation

AxisTickLabels.Rotation property

Ottiene o imposta la rotazione delle etichette delle tacche in gradi.

public int Rotation { get; set; }

Osservazioni

L’intervallo di valori accettabili è compreso tra -180 e 180 (inclusi). Il valore predefinito è 0.

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