IconifyIcon Class
Represents an Iconify icon: the content of an SVG image and its view box.
public sealed class IconifyIconRemarks
The rotation and the flips of the icon, and of its aliases, are already applied to IconifyIcon.Body and to the view box.
Constructors
| Name | Description |
|---|---|
| IconifyIcon(string, string, string, double, double, double, double, bool) | Initializes a new instance of the IconifyIcon class. |
IconifyIcon(string, string, string, double, double, double, double, bool)
IconifyIcon.csInitializes a new instance of the IconifyIcon class.
public IconifyIcon(string prefix, string name, string body, double left, double top, double width, double height, bool isHidden = false)Parameters
prefixstring- The prefix of the icon set, such as
mdi. namestring- The name of the icon in the icon set, such as
account-circle. bodystring- The content of the
svgelement. leftdouble- The left coordinate of the view box.
topdouble- The top coordinate of the view box.
widthdouble- The width of the view box.
heightdouble- The height of the view box.
isHiddenbooltruewhen the icon set keeps the icon for backward compatibility only.
Properties
| Name | Description |
|---|---|
| Body | Gets the content of the svg element (paths, shapes, groups), without the svg element itself. |
| Height | Gets the height of the view box. |
| IsHidden | Gets a value indicating whether the icon set keeps the icon for backward compatibility only. |
| Left | Gets the left coordinate of the view box. |
| Name | Gets the name of the icon in the icon set, such as account-circle. |
| Prefix | Gets the prefix of the icon set, such as mdi. |
| Svg | Gets the SVG image of the icon. Its width and height attributes are the size of the view box. |
| Top | Gets the top coordinate of the view box. |
| Width | Gets the width of the view box. |
Body
IconifyIcon.csHeight
IconifyIcon.csIsHidden
IconifyIcon.csLeft
IconifyIcon.csName
IconifyIcon.csPrefix
IconifyIcon.csWidth
IconifyIcon.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the SVG image of the icon. |
ToString()
IconifyIcon.csReturns the SVG image of the icon.
public override string ToString()Returns
string The value of IconifyIcon.Svg.