SVGStyleElementBuilder.Media

SVGStyleElementBuilder.Media method

Sets the ‘media’ attribute of the SVG ‘style’ element. This attribute specifies the media for which the styles are intended, allowing the styles to be conditional on the media type.

public SVGStyleElementBuilder Media(string mediaDescriptors)
ParameterTypeDescription
mediaDescriptorsStringThe media descriptor string (e.g., “screen”, “print”).

Return Value

The SVGStyleElementBuilder instance for chaining.

See Also