How to use Line predefine SVG shape in XML

In this article I have describe about single Line in XML
  • 1613

Read about SVG here

Read about SVG shape here

Line predefine SVG shape in XML

<line> is use to create a simple Line.


<?xml version="1.0" encoding="utf-8" ?>



    <svg xmlns="" version="1.1">

      <line x1="20" y1="20" x2="200" y2="200"






SVG 6.jpg

Define the code

  • Xml define the namespace and version use the program.
  • x1 define the start line x-axis and x2 define end line x-axis.
  • y1  define the start line y-axis and y2 define end line y-axis.

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.