Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Class SvgLine

Represents an SVG line element.

Inheritance
object
SvgElement
SvgVisual
SvgLine
Implements
IXmlSerializable
IEquatable<SvgElement>
Inherited Members
SvgVisual.fillColor
SvgVisual.strokeColor
SvgVisual.strokeWidth
SvgVisual.transform
SvgVisual.FillColor
SvgVisual.StrokeColor
SvgVisual.StrokeWidth
SvgVisual.Transform
SvgVisual.DrawConfig
SvgVisual.ConvexHull
SvgVisual.BoundingBox
SvgVisual.AlignRelativeTo(SvgVisual, HorizontalAlignment?, VerticalAlignment?)
SvgElement.id
SvgElement.ID
SvgElement.RootDocument
SvgElement.Root
SvgElement.Parent
SvgElement.ViewPort
SvgElement.ViewPortWidth
SvgElement.ViewPortHeight
SvgElement.GetSchema()
SvgElement.WriteXml(XmlWriter)
SvgElement.ReadXml(XmlReader)
SvgElement.ToSvgGroup()
SvgElement.ToSvgDocument()
SvgElement.Attributes()
SvgElement.Equals(object)
SvgElement.Equals(SvgElement)
SvgElement.InformedEquals(SvgElement)
SvgElement.GetHashCode()
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenSvg.SvgNodes
Assembly: OpenSvg.dll
Syntax
public class SvgLine : SvgVisual, IXmlSerializable, IEquatable<SvgElement>

Fields

| Edit this page View Source

x1

Declaration
protected readonly FloatAttr x1
Field Value
Type Description
FloatAttr
| Edit this page View Source

x2

Declaration
protected readonly FloatAttr x2
Field Value
Type Description
FloatAttr
| Edit this page View Source

y1

Declaration
protected readonly FloatAttr y1
Field Value
Type Description
FloatAttr
| Edit this page View Source

y2

Declaration
protected readonly FloatAttr y2
Field Value
Type Description
FloatAttr

Properties

| Edit this page View Source

P1

Gets or sets the starting point of the line.

Declaration
public Vector2 P1 { get; set; }
Property Value
Type Description
Vector2
| Edit this page View Source

P2

Gets or sets the ending point of the line.

Declaration
public Vector2 P2 { get; set; }
Property Value
Type Description
Vector2
| Edit this page View Source

SvgName

Gets or sets the name of the SVG element.

Declaration
public override string SvgName { get; }
Property Value
Type Description
string
Overrides
SvgElement.SvgName
| Edit this page View Source

X1

Gets or sets the x-coordinate of the starting point of the line.

Declaration
public float X1 { get; set; }
Property Value
Type Description
float
| Edit this page View Source

X2

Gets or sets the x-coordinate of the ending point of the line.

Declaration
public float X2 { get; set; }
Property Value
Type Description
float
| Edit this page View Source

Y1

Gets or sets the y-coordinate of the starting point of the line.

Declaration
public float Y1 { get; set; }
Property Value
Type Description
float
| Edit this page View Source

Y2

Gets or sets the y-coordinate of the ending point of the line.

Declaration
public float Y2 { get; set; }
Property Value
Type Description
float

Methods

| Edit this page View Source

ComputeConvexHull()

Computes the convex hull of the line.

Declaration
protected override ConvexHull ComputeConvexHull()
Returns
Type Description
ConvexHull

The convex hull of the line.

Overrides
SvgVisual.ComputeConvexHull()

Implements

IXmlSerializable
IEquatable<T>