PresetTexture

PresetTexture enumeration

Especifica la textura que se utilizará para rellenar una forma.

public enum PresetTexture

Valores

NombreValorDescripción
None-1Sin textura.
BlueTissuePaper1Textura de papel de seda azul.
Bouquet2Textura de ramo.
BrownMarble3Textura de mármol marrón.
Canvas4Textura de lienzo.
Cork5Textura de corcho.
Denim6Textura de mezclilla.
FishFossil7Textura de fósil de pez.
Granite8Textura de granito.
GreenMarble9Textura de mármol verde.
MediumWood10Textura de madera media.
Newsprint11Textura de papel de periódico.
Oak12Textura de roble.
PaperBag13Textura de bolsa de papel.
Papyrus14Textura de papiro.
Parchment15Textura de pergamino.
PinkTissuePaper16Textura de papel de seda rosa.
PurpleMesh17Textura de malla morada.
RecycledPaper18Textura de papel reciclado.
Sand19Textura de arena.
Stationery20Textura de papelería.
Walnut21Textura de nuez.
WaterDroplets22Textura de gotas de agua.
WhiteMarble23Textura de mármol blanco.
WovenMat24Textura de estera tejida.

Ejemplos

Muestra cómo establecer el formato del marcador.

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

Shape shape = builder.InsertChart(ChartType.Scatter, 432, 252);
Chart chart = shape.Chart;

//Eliminar serie generada por defecto.
chart.Series.Clear();
ChartSeries series = chart.Series.Add("AW Series 1", new[] { 0.7, 1.8, 2.6, 3.9 },
    new[] { 2.7, 3.2, 0.8, 1.7 });

// Establecer el formato del marcador.
series.Marker.Size = 40;
series.Marker.Symbol = MarkerSymbol.Square;
ChartDataPointCollection dataPoints = series.DataPoints;
dataPoints[0].Marker.Format.Fill.PresetTextured(PresetTexture.Denim);
dataPoints[0].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[0].Marker.Format.Stroke.BackColor = Color.Red;
dataPoints[1].Marker.Format.Fill.PresetTextured(PresetTexture.WaterDroplets);
dataPoints[1].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[1].Marker.Format.Stroke.Visible = false;
dataPoints[2].Marker.Format.Fill.PresetTextured(PresetTexture.GreenMarble);
dataPoints[2].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[3].Marker.Format.Fill.PresetTextured(PresetTexture.Oak);
dataPoints[3].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[3].Marker.Format.Stroke.Transparency = 0.5;

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

Ver también