Skip to main content

Svg

Assembly: ServiceStack.dll
View Source
Declaration
public static class Svg

Properties

LightColor

View Source
Declaration
public static string LightColor { get; set; }

FillColors

View Source
Declaration
public static string[] FillColors { get; set; }

CssFiles

View Source
Declaration
public static Dictionary<string, List<string>> CssFiles { get; set; }

CssFillColor

View Source
Declaration
public static Dictionary<string, string> CssFillColor { get; set; }

AppendToCssFiles

View Source
Declaration
public static Dictionary<string, string> AppendToCssFiles { get; set; }

AdjacentCssRules

View Source
Declaration
public static Dictionary<string, string> AdjacentCssRules { get; set; }

Images

View Source
Declaration
public static Dictionary<string, string> Images { get; set; }

DataUris

View Source
Declaration
public static Dictionary<string, string> DataUris { get; set; }

Methods

GetImage(String)

View Source
Declaration
public static string GetImage(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetImage(String, String)

View Source
Declaration
public static string GetImage(string name, string fillColor)
Returns

System.String

Parameters
TypeName
System.Stringname
System.StringfillColor

GetStaticContent(String)

View Source
Declaration
public static StaticContent GetStaticContent(string name)
Returns

ServiceStack.StaticContent

Parameters
TypeName
System.Stringname

GetDataUri(String)

View Source
Declaration
public static string GetDataUri(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetDataUri(String, String)

View Source
Declaration
public static string GetDataUri(string name, string fillColor)
Returns

System.String

Parameters
TypeName
System.Stringname
System.StringfillColor

Create(String, String, String, String)

View Source
Declaration
public static string Create(string body, string fill = "none", string viewBox = "0 0 24 24", string stroke = "currentColor")
Returns

System.String

Parameters
TypeName
System.Stringbody
System.Stringfill
System.StringviewBox
System.Stringstroke

CreateImage(String, String, String, String)

View Source
Declaration
public static ImageInfo CreateImage(string body, string fill = "none", string viewBox = "0 0 24 24", string stroke = "currentColor")
Returns

ServiceStack.ImageInfo

Parameters
TypeName
System.Stringbody
System.Stringfill
System.StringviewBox
System.Stringstroke

ImageSvg(String)

View Source
Declaration
public static ImageInfo ImageSvg(string svg)
Returns

ServiceStack.ImageInfo

Parameters
TypeName
System.Stringsvg

ImageUri(String)

View Source
Declaration
public static ImageInfo ImageUri(string uri)
Returns

ServiceStack.ImageInfo

Parameters
TypeName
System.Stringuri

Fill(String, String)

View Source
Declaration
public static string Fill(string svg, string fillColor)
Returns

System.String

Parameters
TypeName
System.Stringsvg
System.StringfillColor

Encode(String)

View Source
Declaration
public static string Encode(string svg)
Returns

System.String

Parameters
TypeName
System.Stringsvg

ToDataUri(String)

View Source
Declaration
public static string ToDataUri(string svg)
Returns

System.String

Parameters
TypeName
System.Stringsvg

GetBackgroundImageCss(String)

View Source
Declaration
public static string GetBackgroundImageCss(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetBackgroundImageCss(String, String)

View Source
Declaration
public static string GetBackgroundImageCss(string name, string fillColor)
Returns

System.String

Parameters
TypeName
System.Stringname
System.StringfillColor

InBackgroundImageCss(String)

View Source
Declaration
public static string InBackgroundImageCss(string svg)
Returns

System.String

Parameters
TypeName
System.Stringsvg

AddImage(String, String, String)

View Source
Declaration
public static void AddImage(string svg, string name, string cssFile = null)
Parameters
TypeName
System.Stringsvg
System.Stringname
System.StringcssFile

Load(IVirtualDirectory)

View Source
Declaration
public static void Load(IVirtualDirectory svgDir)
Parameters
TypeName
ServiceStack.IO.IVirtualDirectorysvgDir