GetEffective
TextStyle.GetEffective method
Ruft effektive Textformatierungsdaten mit angewendeter Vererbung ab.
public ITextStyleEffectiveData GetEffective()
Rückgabewert
Beispiele
Dieses Beispiel demonstriert das Abrufen einiger effektiver Textstileigenschaften.
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
ITextStyleEffectiveData effectiveTextStyle = shape.TextFrame.TextFrameFormat.TextStyle.GetEffective();
for (int i = 0; i <= 8; i++)
{
IParagraphFormatEffectiveData effectiveStyleLevel = effectiveTextStyle.GetLevel(i);
Console.WriteLine("= Effective paragraph formatting for style level #" + i + " =");
Console.WriteLine("Depth: " + effectiveStyleLevel.Depth);
Console.WriteLine("Indent: " + effectiveStyleLevel.Indent);
Console.WriteLine("Alignment: " + effectiveStyleLevel.Alignment);
Console.WriteLine("Font alignment: " + effectiveStyleLevel.FontAlignment);
}
}
Siehe auch
- interface ITextStyleEffectiveData
- class TextStyle
- namensraum Aspose.Slides
- Montage Aspose.Slides