Class SvgIconDefinition
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
technicalNamestring
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; }