|
// --------------------------------------------------------------------------------
// 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.
He is a Microsoft technology enthusiast, who wish to create applications which others find useful.He loves making small tools and getting involved in architecting bigger systems.
He is currently working as a professional developer in a software development firm in .Net technologies.
He likes reading technical blogs, contributing to opensource and most importantly, enjoying life.
His ambition is to be an impressive software maker.