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

Class SvgCssStyle

Represents an SVG style element with CSS text content.

Inheritance
object
SvgElement
SvgStyle
SvgCssStyle
Implements
IXmlSerializable
IEquatable<SvgElement>
IHasElementContent
Inherited Members
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 SvgCssStyle : SvgStyle, IXmlSerializable, IEquatable<SvgElement>, IHasElementContent
Remarks

The style element is used inside SVG documents to embed stylings. CSS can be used as a standalone stylesheet or can be included directly into SVG elements as attributes.

Fields

| Edit this page View Source

type

Declaration
protected readonly StringAttr type
Field Value
Type Description
StringAttr

Properties

| Edit this page View Source

Content

Gets or sets the content of the element.

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

Fonts

Declaration
public IReadOnlyList<SvgFont> Fonts { get; }
Property Value
Type Description
IReadOnlyList<SvgFont>
| 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

Type

Declaration
public string Type { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

Add(SvgFont)

Adds the specified SvgFont to the CSS style.

Declaration
public void Add(SvgFont svgFont)
Parameters
Type Name Description
SvgFont svgFont

The SVG font to add.

Exceptions
Type Condition
NotSupportedException

Thrown when adding more than one font.

Implements

IXmlSerializable
IEquatable<T>
IHasElementContent