Skip to main content

SvgImage Class

Namespace: DevExpress.Utils.Svg

Assembly: DevExpress.Data.v22.1.dll

Declaration

public class SvgImage :
    ISerializable,
    ICloneable

Remarks

There are two easy ways to assign DevExpress Vector icons to controls:

If none of these approaches suit your needs, create the SvgImage object manually. To do that, call one of available From… methods.

SvgImage img1 = SvgImage.FromFile("Data\MyImage.svg");
SvgImage img2 = SvgImage.FromResources("MyImage2.svg", typeof(mainForm).Assembly);

Refer to the How To: Draw and Use SVG Images article to learn about vector icon limitations and guidelines.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SvgImage class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
SvgImage
See Also