Class SvgNames
This class contains string constants for all the names for SVG elements and attributes
Inherited Members
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public static class SvgNames
Fields
| Edit this page View SourceCircle
Circle element
Declaration
public const string Circle = "circle"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a circle in SVG.
CircleX
cx attribute
Declaration
public const string CircleX = "cx"
Field Value
Type | Description |
---|---|
string |
Remarks
The x-axis coordinate of the center of the circle.
CircleY
cy attribute
Declaration
public const string CircleY = "cy"
Field Value
Type | Description |
---|---|
string |
Remarks
The y-axis coordinate of the center of the circle.
D
D attribute
Declaration
public const string D = "d"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a path data for SVG elements.
DefaultFontName
Default Font in SVG if no font is specified
Declaration
public const string DefaultFontName = "Times New Roman"
Field Value
Type | Description |
---|---|
string |
DefaultFontSize
Default Font Size in SVG if no font size is specified
Declaration
public const float DefaultFontSize = 16
Field Value
Type | Description |
---|---|
float |
Defs
Defs element
Declaration
public const string Defs = "defs"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a section in which definitions for SVG elements are stored.
DominantBaseline
Dominant baseline attribute
Declaration
public const string DominantBaseline = "dominant-baseline"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a dominant baseline for SVG text elements.
Fill
Fill attribute
Declaration
public const string Fill = "fill"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a fill color for SVG elements.
FontFaceRule
String for CSS font-face rule
Declaration
public const string FontFaceRule = "@font-face"
Field Value
Type | Description |
---|---|
string |
FontName
Font family attribute
Declaration
public const string FontName = "font-family"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a font family for SVG text elements.
FontSize
Font size attribute
Declaration
public const string FontSize = "font-size"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a font size for SVG text elements.
Format
Attribute for CSS font-face rule for font format
Declaration
public const string Format = "format"
Field Value
Type | Description |
---|---|
string |
Group
Group element
Declaration
public const string Group = "g"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a group of SVG elements.
Height
Height attribute
Declaration
public const string Height = "height"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a height for SVG elements.
ID
ID attribute
Declaration
public const string ID = "id"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines an identifier for SVG elements.
Line
Line element
Declaration
public const string Line = "line"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a line in SVG.
Matrix
Matrix attribute value
Declaration
public const string Matrix = "matrix"
Field Value
Type | Description |
---|---|
string |
OpenType
Value for Format for OTF fonts
Declaration
public const string OpenType = "opentype"
Field Value
Type | Description |
---|---|
string |
Path
Path element
Declaration
public const string Path = "path"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a path in SVG.
Points
Points attribute
Declaration
public const string Points = "points"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a set of points for SVG polygon elements.
Polygon
Polygon element
Declaration
public const string Polygon = "polygon"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a polygon in SVG.
Polyline
Polyline element
Declaration
public const string Polyline = "polyline"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a polyline in SVG.
PreserveAspectRatio
Represents the preserveAspectRatio attribute in SVG.
Declaration
public const string PreserveAspectRatio = "preserveAspectRatio"
Field Value
Type | Description |
---|---|
string |
Remarks
The preserveAspectRatio attribute defines how an element is scaled, stretched, or positioned to fit within a specified viewport.
Radius
r attribute
Declaration
public const string Radius = "r"
Field Value
Type | Description |
---|---|
string |
Remarks
The radius of the circle. A value lower or equal to zero disables rendering of the circle.
Rect
Rect element
Declaration
public const string Rect = "rect"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a rectangle in SVG.
Rotate
Rotate attribute value
Declaration
public const string Rotate = "rotate"
Field Value
Type | Description |
---|---|
string |
Rx
Rx attribute
Declaration
public const string Rx = "rx"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a horizontal radius for SVG ellipse elements.
Ry
Ry attribute
Declaration
public const string Ry = "ry"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a vertical radius for SVG ellipse elements.
Scale
Scale attribute value
Declaration
public const string Scale = "scale"
Field Value
Type | Description |
---|---|
string |
SkewX
SkewX attribute value
Declaration
public const string SkewX = "skewX"
Field Value
Type | Description |
---|---|
string |
SkewY
SkewY attribute value
Declaration
public const string SkewY = "skewY"
Field Value
Type | Description |
---|---|
string |
Stroke
Stroke attribute
Declaration
public const string Stroke = "stroke"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a stroke color for SVG elements.
StrokeWidth
Stroke width attribute
Declaration
public const string StrokeWidth = "stroke-width"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a stroke width for SVG elements.
Style
Style element
Declaration
public const string Style = "style"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a style for SVG elements.
Svg
SVG element
Declaration
public const string Svg = "svg"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines an SVG document.
SvgNamespace
Namespace for SVG
Declaration
public const string SvgNamespace = "http://www.w3.org/2000/svg"
Field Value
Type | Description |
---|---|
string |
Text
Text element
Declaration
public const string Text = "text"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a text in SVG.
TextAnchor
Text anchor attribute
Declaration
public const string TextAnchor = "text-anchor"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a text anchor for SVG text elements.
TextCss
CSS text attribute value
Declaration
public const string TextCss = "text/css"
Field Value
Type | Description |
---|---|
string |
Transform
Transformation attribute
Declaration
public const string Transform = "transform"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a transformation for SVG elements.
Translate
Translation attribute value
Declaration
public const string Translate = "translate"
Field Value
Type | Description |
---|---|
string |
Transparent
String for transparent color
Declaration
public const string Transparent = "none"
Field Value
Type | Description |
---|---|
string |
TrueType
Value for Format for TTF fonts
Declaration
public const string TrueType = "truetype"
Field Value
Type | Description |
---|---|
string |
Type
Type attribute for Style element
Declaration
public const string Type = "type"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a type for SVG style elements.
Unsupported
Element for unsupported SVG elements
Declaration
public const string Unsupported = "unsupported"
Field Value
Type | Description |
---|---|
string |
ViewBox
Represents the viewBox attribute in SVG.
Declaration
public const string ViewBox = "viewBox"
Field Value
Type | Description |
---|---|
string |
Remarks
The viewBox attribute defines the position and dimensions, in user space, of an SVG viewport.
Width
Width attribute
Declaration
public const string Width = "width"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a width for SVG elements.
X
X attribute
Declaration
public const string X = "x"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a horizontal position for SVG elements.
X1
X1 attribute
Declaration
public const string X1 = "x1"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a horizontal position for SVG line elements.
X2
X2 attribute
Declaration
public const string X2 = "x2"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a horizontal position for SVG line elements.
Y
Y attribute
Declaration
public const string Y = "y"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a vertical position for SVG elements.
Y1
Y1 attribute
Declaration
public const string Y1 = "y1"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a vertical position for SVG line elements.
Y2
Y2 attribute
Declaration
public const string Y2 = "y2"
Field Value
Type | Description |
---|---|
string |
Remarks
Defines a vertical position for SVG line elements.