Orientation

AxisTickLabels.Orientation property

Obtiene o establece la orientación del texto de la etiqueta de marca.

public ShapeTextOrientation Orientation { get; set; }

Observaciones

El valor predeterminado esHorizontal.

Tenga en cuenta que algunosShapeTextOrientation Los valores no afectan la orientación de la etiqueta de marca text en los ejes de valores.

Ejemplos

Muestra cómo cambiar la orientación y la rotación de las etiquetas de las marcas de los ejes.

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

// Insertar un gráfico de columnas.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
AxisTickLabels xTickLabels = shape.Chart.AxisX.TickLabels;
AxisTickLabels yTickLabels = shape.Chart.AxisY.TickLabels;

// Establecer la orientación y rotación de la etiqueta de la marca del eje.
xTickLabels.Orientation = ShapeTextOrientation.VerticalFarEast;
xTickLabels.Rotation = -30;
yTickLabels.Orientation = ShapeTextOrientation.Horizontal;
yTickLabels.Rotation = 45;

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

Ver también