PresetTexture

PresetTexture enumeration

Spécifie la texture à utiliser pour remplir une forme.

public enum PresetTexture

Valeurs

NomÉvaluerLa description
None-1Aucune texture.
BlueTissuePaper1Texture de papier de soie bleu.
Bouquet2Texture du bouquet.
BrownMarble3Texture de marbre brun.
Canvas4Texture de la toile.
Cork5Texture liège.
Denim6Texture denim.
FishFossil7Texture de fossile de poisson.
Granite8Texture de granit.
GreenMarble9Texture de marbre vert.
MediumWood10Texture bois moyenne.
Newsprint11Texture de papier journal.
Oak12Texture chêne.
PaperBag13Texture de sac en papier.
Papyrus14Texture de papyrus.
Parchment15Texture de parchemin.
PinkTissuePaper16Texture de papier de soie rose.
PurpleMesh17Texture de maille violette.
RecycledPaper18Texture de papier recyclé.
Sand19Texture de sable.
Stationery20Texture de papeterie.
Walnut21Texture de noix.
WaterDroplets22Texture de gouttes d’eau.
WhiteMarble23Texture de marbre blanc.
WovenMat24Texture de tapis tissé.

Exemples

Montrez comment définir la mise en forme des marqueurs.

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

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

// Supprimer la série générée par défaut.
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 });

// Définir le formatage du marqueur.
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");

Voir également