다음을 통해 공유


TimeAnimateValue.Fomula Property

Definition

Formula

Represents the following attribute in the schema: fmla

[DocumentFormat.OpenXml.SchemaAttr(0, "fmla")]
public DocumentFormat.OpenXml.StringValue Fomula { get; set; }
public DocumentFormat.OpenXml.StringValue Fomula { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "fmla")]
public DocumentFormat.OpenXml.StringValue? Fomula { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("fmla")]
public DocumentFormat.OpenXml.StringValue? Fomula { get; set; }
public DocumentFormat.OpenXml.StringValue? Fomula { get; set; }
member this.Fomula : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "fmla")>]
member this.Fomula : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("fmla")>]
member this.Fomula : DocumentFormat.OpenXml.StringValue with get, set
Public Property Fomula As StringValue

Property Value

Returns StringValue.

Attributes

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

This attribute allows for a specific formula to be used during the animation. This is specified in a semicolon-separated list of formulas. The value generated by interpolating the values list will be fed into the formula as an input. The resulting value is used to set the property being animated. There should be n-1 number of formulas for n values in the values list. The formula is applied starting at the corresponding time in the keyTimes list and up to the next time in the list.

Formulas can only support a calcMode (Calculation Mode) of linear or discrete. If another calcMode is specified or no calcMode is specified then a calcMode of linear will be assumed.

Formulas must be written using the elements defined below. When a formula is used in an attribute that takes more than one parameter (such as for animateScale or animateMotion), a space will be taken as a delimiter between parameter values. To work around this, either don't put spaces in the formula or include parentheses around the formula.

Formulas within values, from, to, by attributes can be made up of these:

  • Standard arithmetic operators: ‘+’, ‘-‘, ‘*’, ‘/’, ‘^’, ‘%’ (mod)

  • Constants: ‘pi’ ‘e’

  • Conditional operators: ‘abs’, ‘min’, ‘max’, ‘?’ (if)

  • Comparison operators: '==', '>=', '<=', '!=', '!'

  • Trigonometric operators: ‘sin()’, ‘cos()’, ‘tan()’, ‘asin()’, ‘acos()’, ‘atan()’

  • Natural logarithm ‘ln()’

  • Property references (host supported properties)

The above formula elements are different than those used in javascript expressions. For example "cos()" used in formulas would be "Math.cos()" in javascript.

The possible values for this attribute are defined by the XML Schema string datatype.

Applies to