コード例 #1
0
        /// <summary>
        /// It creates a new SVG Marker element.
        /// </summary>
        /// <param name="parent">Parent element. If null the element is added under the root.</param>
        /// <returns>New element created.</returns>
        public SvgMarker AddMarker()
        {
            SvgDefs   defs   = this.AddDefs();
            SvgMarker marker = new SvgMarker(this);

            AddElement(defs, marker);
            return(marker);
        }
コード例 #2
0
 /// <summary>
 /// </summary>
 /// <returns>New element created.</returns>
 public SvgDefs AddDefs()
 {
     if (this.defs == null)
     {
         this.defs = new SvgDefs(this);
         AddElement(null, defs);
     }
     return(defs);
 }