|
// --------------------------------------------------------------------------------
// Name: SvgDesc
//
// Author: Maurizio Bigoloni <big71@fastwebnet.it>
// See the ReleaseNote.txt file for copyright and license information.
//
// Remarks:
//
// --------------------------------------------------------------------------------
using System;
using System.ComponentModel;
namespace SVGLib
{
/// <summary>
/// It represents the desc SVG element.
/// Each container element or graphics element in an SVG drawing can supply
/// a 'desc' and/or a 'title' description string where the description is text-only.
/// </summary>
public class SvgDesc : SvgElement
{
/// <summary>
/// The value of the element.
/// </summary>
[Category("(Specific)")]
[Description("The value of the element.")]
public string Value
{
get
{
return m_sElementValue;
}
set
{
m_sElementValue = value;
}
}
/// <summary>
/// It constructs a desc element with no attribute.
/// </summary>
/// <param name="doc">SVG document.</param>
public SvgDesc(SvgDoc doc):base(doc)
{
Init();
}
/// <summary>
/// It constructs a desc element.
/// </summary>
/// <param name="doc">SVG document.</param>
/// <param name="sValue"></param>
public SvgDesc(SvgDoc doc, string sValue):base(doc)
{
Init();
Value = sValue;
}
private void Init()
{
m_sElementName = "desc";
m_bHasValue = true;
m_ElementType = _SvgElementType.typeDesc;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.