AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/Document Structure/SvgDocumentMetadata.cs

(完整代码) 1KB

// THIS FILE IS PART OF SVG PROJECT
// THE SVG PROJECT IS AN OPENSOURCE LIBRARY LICENSED UNDER THE MS-PL License.
// COPYRIGHT (C) svg-net. ALL RIGHTS RESERVED.
// GITHUB: https://github.com/svg-net/SVG

using System.Xml;

namespace AntdUI.Svg
{
    /// <summary>
    /// Represents a list of re-usable SVG components.
    /// </summary>
    public class SvgDocumentMetadata : SvgElement
    {
        public override string ClassName { get => "metadata"; }

        //	private string _metadata; 


        /// <summary>
        /// Initializes a new instance of the <see cref="SvgDocumentMetadata"/> class.
        /// </summary>
        public SvgDocumentMetadata()
        {
            Content = "";
        }


        //public string Metadata
        //{
        //    get { return _metadata; }
        //    set { _metadata = value; }
        //}


        /// <summary>
        /// Renders the <see cref="SvgElement"/> and contents to the specified <see cref="ISvgRenderer"/> object.
        /// </summary>
        /// <param name="renderer">The <see cref="ISvgRenderer"/> object to render to.</param>
        protected override void Render(ISvgRenderer renderer)
        {
            // Do nothing. Children should NOT be rendered.
        }

        public override void InitialiseFromXML(XmlTextReader reader, SvgDocument document)
        {
            base.InitialiseFromXML(reader, document);

            //read in the metadata just as a string ready to be written straight back out again
            Content = reader.ReadInnerXml();
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。