GetEffective

ColumnFormat.GetEffective-Methode

Erhält effektive Tabellenspaltenformatierungseigenschaften mit Vererbung und angewandten Tabellenstilen.

public IColumnFormatEffectiveData GetEffective()

Rückgabewert

Ein IColumnFormatEffectiveData.

Beispiele

Dieses Beispiel zeigt, wie man das effektive Füllformat für verschiedene logische Teile einer Tabelle erhält. Bitte beachten Sie, dass die Zellenformatierung immer eine höhere Priorität als die Zeilenformatierung hat, die Zeilenformatierung höher als die Spaltenformatierung und die Spaltenformatierung höher als die gesamte Tabelle. Daher werden letztendlich 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