VariantValue Class

Value.When the object is serialized out as xml, its qualified name is p:val.

Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class VariantValue : TimeListAnimationVariantType

The following table lists the possible child types:

  • BooleanVariantValue <p:boolVal>

  • IntegerVariantValue <p:intVal>

  • FloatVariantValue <p:fltVal>

  • StringVariantValue <p:strVal>

  • ColorValue <p:clrVal>

[ISO/IEC 29500-1 1st Edition]

19.5.92 val (Value)

The element specifies a value for a time animate.

[Example: Consider a shape with a fade in animation effect. The <val> element should be used as follows:

  <p:anim calcmode="lin" valueType="num">
    <p:cBhvr additive="base"> … </p:cBhvr>
      <p:tav tm="0">
          <p:strVal val="0-#ppt_w/2"/>
      <p:tav tm="100000">
          <p:strVal val="#ppt_x"/>

end example]

Parent Elements

tav (§19.5.79)

Child Elements


boolVal (Boolean Variant)


clrVal (Color Value)


fltVal (Float Value)


intVal (Integer)


strVal (String Value)


[Note: The W3C XML Schema definition of this element’s content model (CT_TLAnimVariant) is located in §A.3. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions