共用方式為


VariantValue Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.TimeListAnimationVariantType
        DocumentFormat.OpenXml.Presentation.VariantValue

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

Syntax

'Declaration
Public Class VariantValue _
    Inherits TimeListAnimationVariantType
'Usage
Dim instance As VariantValue
public class VariantValue : TimeListAnimationVariantType

Remarks

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:tavLst>
      <p:tav tm="0">
        <p:val>
          <p:strVal val="0-#ppt_w/2"/>
        </p:val>
      </p:tav>
      <p:tav tm="100000">
        <p:val>
          <p:strVal val="#ppt_x"/>
        </p:val>
      </p:tav>
    </p:tavLst>
  </p:anim>

end example]

Parent Elements

tav (§19.5.79)

Child Elements

Subclause

boolVal (Boolean Variant)

§19.5.19

clrVal (Color Value)

§19.5.27

fltVal (Float Value)

§19.5.42

intVal (Integer)

§19.5.48

strVal (String Value)

§19.5.75

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also

Reference

VariantValue Members

DocumentFormat.OpenXml.Presentation Namespace