GetEffective

RowFormat.GetEffective-Methode

Erhält effektive Formatierungseigenschaften für Tabellenzeilen mit angewendeter Vererbung und Tabellenstilen.

public IRowFormatEffectiveData GetEffective()

Rückgabewert

Ein IRowFormatEffectiveData.

Beispiele

Dieses Beispiel zeigt, wie man das effektive Füllformat für verschiedene logische Teile einer Tabelle erhält. Bitte beachten Sie, dass die Zellformatierung immer eine höhere Priorität hat als die Zeilenformatierung, die Zeilen - höher als die Spalten, und die Spalten - höher als die gesamte Tabelle. Daher werden schließlich die Eigenschaften von CellFormatEffectiveData immer zum Zeichnen der Tabelle verwendet. 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