Table of Contents

Class SvgIconDefinition

Namespace
Dmnk.Icons.Core
Assembly
Dmnk.Icons.Core.dll

Defines an icon that is represented as an SVG. The SVG data is stored as a string, which can be used to create an Icon of this definition. Note that the actual size of the SVG data may not match the size of the Icon returned by the size properties, in which case the SVG data will be stretched to fit the requested size.

public class SvgIconDefinition : IconDefinition
Inheritance
SvgIconDefinition
Inherited Members

Constructors

SvgIconDefinition(string)

Defines an icon that is represented as an SVG. The SVG data is stored as a string, which can be used to create an Icon of this definition. Note that the actual size of the SVG data may not match the size of the Icon returned by the size properties, in which case the SVG data will be stretched to fit the requested size.

public SvgIconDefinition(string technicalName)

Parameters

technicalName string

Properties

Svg

The SVG data. This should be a valid SVG string that can be rendered as an icon. The actual <svg> tag should be excluded from this string, as the rendering logic will wrap it in an <svg> tag with the appropriate size and color.

public virtual string Svg { get; }

Property Value

string