FillType
Inhalt
[
Ausblenden
]Fill.FillType property
Ruft einen Fülltyp ab.
public FillType FillType { get; }
Beispiele
Zeigt, wie Sie beliebige Füllungen wieder in Vollfüllungen umwandeln.
Document doc = new Document(MyDir + "Two color gradient.docx");
// Füllobjekt für die Schriftart des ersten Laufs abrufen.
Fill fill = doc.FirstSection.Body.Paragraphs[0].Runs[0].Font.Fill;
// Fülleigenschaften der Schriftart prüfen.
Console.WriteLine("The type of the fill is: {0}", fill.FillType);
Console.WriteLine("The foreground color of the fill is: {0}", fill.ForeColor);
Console.WriteLine("The fill is transparent at {0}%", fill.Transparency * 100);
// Ändern Sie den Füllungstyp in „Einfarbig“ mit einheitlicher grüner Farbe.
fill.Solid();
Console.WriteLine("\nThe fill is changed:");
Console.WriteLine("The type of the fill is: {0}", fill.FillType);
Console.WriteLine("The foreground color of the fill is: {0}", fill.ForeColor);
Console.WriteLine("The fill transparency is {0}%", fill.Transparency * 100);
doc.Save(ArtifactsDir + "Drawing.FillSolid.docx");
Siehe auch
- enum FillType
- class Fill
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words