///<summary>Sets the value of the <c>&lt;CalculationRule&gt;</c> element.</summary>
 /// <param name="Type">Values: Description, Formula, URL, Other</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;CalculationRule&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setCalculationRule</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CalculationRule</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetCalculationRule( CalculationRuleType Type, string Value )
 {
     RemoveChild( DwDTD.AGGREGATESTATISTICINFO_CALCULATIONRULE);
     AddChild( DwDTD.AGGREGATESTATISTICINFO_CALCULATIONRULE, new CalculationRule( Type, Value ) );
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Values: Description, Formula, URL, Other</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;CalculationRule&amp;gt; element</param>
 ///
 public CalculationRule( CalculationRuleType type, string value )
     : base(DwDTD.CALCULATIONRULE)
 {
     this.SetType( type );
     this.Value = value;
 }
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A CalculationRuleType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Values: Description, Formula, URL, Other"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetType( CalculationRuleType val )
 {
     SetField( DwDTD.CALCULATIONRULE_TYPE, val );
 }
Exemple #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Values: Description, Formula, URL, Other</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;CalculationRule&amp;gt; element</param>
 ///
 public CalculationRule(CalculationRuleType type, string value) : base(DwDTD.CALCULATIONRULE)
 {
     this.SetType(type);
     this.Value = value;
 }
Exemple #5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A CalculationRuleType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Values: Description, Formula, URL, Other"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetType(CalculationRuleType val)
 {
     SetField(DwDTD.CALCULATIONRULE_TYPE, val);
 }
 ///<summary>Sets the value of the <c>&lt;CalculationRule&gt;</c> element.</summary>
 /// <param name="Type">Values: Description, Formula, URL, Other</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;CalculationRule&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setCalculationRule</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CalculationRule</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetCalculationRule(CalculationRuleType Type, string Value)
 {
     RemoveChild(DwDTD.AGGREGATESTATISTICINFO_CALCULATIONRULE);
     AddChild(DwDTD.AGGREGATESTATISTICINFO_CALCULATIONRULE, new CalculationRule(Type, Value));
 }