Exemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Values: Sample, Size, Description</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;ExclusionRule&amp;gt; element</param>
 ///
 public ExclusionRule(ExclusionRuleType type, string value) : base(DwDTD.EXCLUSIONRULE)
 {
     this.SetType(type);
     this.Value = value;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ExclusionRuleType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Values: Sample, Size, Description"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetType(ExclusionRuleType val)
 {
     SetField(DwDTD.EXCLUSIONRULE_TYPE, val);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ExclusionRuleType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Values: Sample, Size, Description"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetType( ExclusionRuleType val )
 {
     SetField( DwDTD.EXCLUSIONRULE_TYPE, val );
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Values: Sample, Size, Description</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;ExclusionRule&amp;gt; element</param>
 ///
 public ExclusionRule( ExclusionRuleType type, string value )
     : base(DwDTD.EXCLUSIONRULE)
 {
     this.SetType( type );
     this.Value = value;
 }
Exemplo n.º 5
0
 ///<summary>Adds the value of the <c>&lt;ExclusionRule&gt;</c> element.</summary>
 /// <param name="Type">Values: Sample, Size, Description</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;ExclusionRule&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setExclusionRule</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddExclusionRule</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddExclusionRule(ExclusionRuleType Type, string Value)
 {
     AddChild(DwDTD.EXCLUSIONRULES_EXCLUSIONRULE, new ExclusionRule(Type, Value));
 }