Skip to main content
All docs
V26.1
  • SvgImage.FromFile(String) Method

    SECURITY-RELATED CONSIDERATIONS

    Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

    Creates a new SvgImage object from a vector image on local storage.

    Namespace: DevExpress.Utils.Svg

    Assembly: DevExpress.Data.v26.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public static SvgImage FromFile(
        string path
    )

    Parameters

    Name Type Description
    path String

    A path to the image file.

    Returns

    Type Description
    SvgImage

    The SvgImage object created from the given file.

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FromFile(String) method.

    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.

    See Also