Table of Contents

Class SvgStyle

Namespace
Svg
Assembly
Svg.dll

An element used to embed CSS style sheets within SVG documents. Use the Content property to get or set the CSS content.

[SvgElement("style")]
public class SvgStyle : SvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgDescriptiveElement
Inheritance
SvgStyle
Implements
Inherited Members
Extension Methods

Properties

Media

This attribute specifies a media query that must be matched for the style sheet to apply. Its value is parsed as a media_query_list. If not specified, the style sheet applies unconditionally.

public string Media { get; set; }

Property Value

string

StyleType

This attribute specifies the style sheet language of the element's contents, as a media type. If the attribute is not specified, then the style sheet language is assumed to be CSS.

public string StyleType { get; set; }

Property Value

string

Title

This attribute specifies a title for the style sheet, which is used when exposing and selecting between alternate style sheets. The attribute takes any value.

public string Title { get; set; }

Property Value

string

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

WriteChildren(XmlWriter)

protected override void WriteChildren(XmlWriter writer)

Parameters

writer XmlWriter