add_condition Methode

add_condition(self, type)

Fügen Sie eine Formatbedingung hinzu.

Kehrt zurück

Formatierungsbedingungsobjektindex;


def add_condition(self, type):
    ...
ParameterTypBeschreibung
typeFormatConditionTypeFormatieren Sie den Bedingungstyp.

add_condition(self, type, operator_type, formula1, formula2)

Fügt eine Formatierungsbedingung hinzu.

Kehrt zurück

Formatierungsbedingungsobjektindex;


def add_condition(self, type, operator_type, formula1, formula2):
    ...
ParameterTypBeschreibung
typeFormatConditionTypeDer Typ der Formatbedingung.
operator_typeOperatorTypeDer Operatortyp
formula1strDer mit der bedingten Formatierung verknüpfte Wert oder Ausdruck.
Beginnt der Eingabewert mit „=“, wird er als Formel verwendet.
Andernfalls wird es als einfacher Wert (Text, Zahl, Bool) übernommen.
Für Textwerte, die mit „=“ beginnen, kann der Benutzer sie als Formel im Format „=\“=…\““ eingeben.
formula2strDer mit der bedingten Formatierung verknüpfte Wert oder Ausdruck.
Das Eingabeformat ist dasselbe wie bei Formel 1

Siehe auch