Ejemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The way the picture is specified.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;PictureSource&amp;gt; element</param>
 ///
 public PictureSource(PictureSourceType type, string value) : base(CommonDTD.PICTURESOURCE)
 {
     this.SetType(type);
     this.Value = value;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PictureSourceType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The way the picture is specified."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetType(PictureSourceType val)
 {
     SetField(CommonDTD.PICTURESOURCE_TYPE, val);
 }
Ejemplo n.º 3
0
 ///<summary>Sets the value of the <c>&lt;PictureSource&gt;</c> element.</summary>
 /// <param name="Type">The way the picture is specified.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;PictureSource&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setPictureSource</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PictureSource</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetPictureSource( PictureSourceType Type, string Value )
 {
     RemoveChild( SchoolDTD.PERSONPICTURE_PICTURESOURCE);
     AddChild( SchoolDTD.PERSONPICTURE_PICTURESOURCE, new PictureSource( Type, Value ) );
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The way the picture is specified.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;PictureSource&amp;gt; element</param>
 ///
 public PictureSource( PictureSourceType type, string value )
     : base(CommonDTD.PICTURESOURCE)
 {
     this.SetType( type );
     this.Value = value;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PictureSourceType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The way the picture is specified."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetType( PictureSourceType val )
 {
     SetField( CommonDTD.PICTURESOURCE_TYPE, val );
 }
Ejemplo n.º 6
0
 ///<summary>Sets the value of the <c>&lt;PictureSource&gt;</c> element.</summary>
 /// <param name="Type">The way the picture is specified.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;PictureSource&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setPictureSource</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PictureSource</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetPictureSource( PictureSourceType Type, string Value )
 {
     RemoveChild( StudentDTD.STUDENTPICTURE_PICTURESOURCE);
     AddChild( StudentDTD.STUDENTPICTURE_PICTURESOURCE, new PictureSource( Type, Value ) );
 }