FillFormat
IBulletFormatEffectiveData.FillFormat-Eigenschaft
Gibt das Füllformat von Aufzählungszeichen eines Absatzes zurück. Nur Lesend IFillFormatEffectiveData
.
public IFillFormatEffectiveData FillFormat { get; }
Beispiele
Dieses Beispiel demonstriert das Abrufen der effektiven Fülldaten für das Aufzählungszeichen.
[C#]
using (Presentation pres = new Presentation("SomePresentation.pptx"))
{
// Angenommen, die erste Form auf der ersten Folie ist eine AutoForm mit etwas Text...
// Ausgeben von Informationen über die Aufzählungszeichen der Textabsätze
AutoShape autoShape = (AutoShape)pres.Slides[0].Shapes[0];
foreach (Paragraph para in autoShape.TextFrame.Paragraphs)
{
IBulletFormatEffectiveData bulletFormatEffective = para.ParagraphFormat.Bullet.GetEffective();
Console.WriteLine("Aufzählungszeichen-Typ: " + bulletFormatEffective.Type);
if (bulletFormatEffective.Type != BulletType.None)
{
Console.WriteLine("Aufzählungszeichen Fülltyp: " + bulletFormatEffective.FillFormat.FillType);
switch (bulletFormatEffective.FillFormat.FillType)
{
case FillType.Solid:
Console.WriteLine("Farbe der einheitlichen Füllung: " + bulletFormatEffective.FillFormat.SolidFillColor);
break;
case FillType.Gradient:
Console.WriteLine("Anzahl der Farbverläufe: " + bulletFormatEffective.FillFormat.GradientFormat.GradientStops.Count);
foreach (IGradientStopEffectiveData gradStop in bulletFormatEffective.FillFormat.GradientFormat.GradientStops)
Console.WriteLine(gradStop.Position + ": " + gradStop.Color);
break;
case FillType.Pattern:
Console.WriteLine("Musterstil: " + bulletFormatEffective.FillFormat.PatternFormat.PatternStyle);
Console.WriteLine("Vordergrundfarbe: " + bulletFormatEffective.FillFormat.PatternFormat.ForeColor);
Console.WriteLine("Hintergrundfarbe: " + bulletFormatEffective.FillFormat.PatternFormat.BackColor);
break;
}
}
Console.WriteLine();
}
}
Siehe Auch
- Schnittstelle IFillFormatEffectiveData
- Schnittstelle IBulletFormatEffectiveData
- Namespace Aspose.Slides
- Assembly Aspose.Slides