GetEffective
CellFormat.GetEffective-Methode
Ruft die effektiven Formatierungseigenschaften von Tabellenzellen mit angewendeter Vererbung und Tabellenstilen ab.
public ICellFormatEffectiveData GetEffective()
Rückgabewert
Beispiele
Dieses Beispiel zeigt, wie das effektive Füllformat für verschiedene Logikteile der Tabelle abgerufen wird. Bitte beachten Sie, dass die Zellformatierung immer eine höhere Priorität hat als die Zeilenformatierung, die Zeilenformatierung höher als die Spaltenformatierung, und die Spaltenformatierung höher als die gesamte Tabelle. Daher werden die Eigenschaften von CellFormatEffectiveData immer verwendet, um die Tabelle zu zeichnen. Der folgende Code ist nur ein Beispiel für die API.
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
ITable tbl = pres.Slides[0].Shapes[0] as ITable;
IFillFormatEffectiveData tableFillFormatEffective = tbl.TableFormat.GetEffective().FillFormat;
IFillFormatEffectiveData rowFillFormatEffective = tbl.Rows[0].RowFormat.GetEffective().FillFormat;
IFillFormatEffectiveData columnFillFormatEffective = tbl.Columns[0].ColumnFormat.GetEffective().FillFormat;
IFillFormatEffectiveData cellFillFormatEffective = tbl[0, 0].CellFormat.GetEffective().FillFormat;
/* Ausgabe und Vergleich */
}
Siehe auch
- Schnittstelle ICellFormatEffectiveData
- Klasse CellFormat
- Namespace Aspose.Slides
- Assembly Aspose.Slides