Class Utility
Class for Utility.
Inheritance
Inherited Members
Namespace: Syncfusion.SVG.IO
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class Utility
Constructors
Utility()
Declaration
public Utility()
Properties
FloatFormat
Gets the float format.
Declaration
public static NumberFormatInfo FloatFormat { get; }
Property Value
Type | Description |
---|---|
System.Globalization.NumberFormatInfo | The float format. |
NumberChars
Gets the number chars.
Declaration
public static char[] NumberChars { get; }
Property Value
Type | Description |
---|---|
System.Char[] | The number chars. |
NumberRegex
Gets the number regex.
Declaration
public static Regex NumberRegex { get; }
Property Value
Type | Description |
---|---|
System.Text.RegularExpressions.Regex | The number regex. |
UrlRegex
Gets the URL regex.
Declaration
public static Regex UrlRegex { get; }
Property Value
Type | Description |
---|---|
System.Text.RegularExpressions.Regex | The URL regex. |
Methods
GetFloat(Single)
Gets the float.
Declaration
public static string GetFloat(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | The value. |
Returns
Type | Description |
---|---|
System.String | The float. |
GetFloat(String)
Gets the float.
Declaration
public static float GetFloat(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
Returns
Type | Description |
---|---|
System.Single | The float value. |
GetGDIBrush(IFillAttributes, SvgDocument)
Gets the GDI brush.
Declaration
public static Brush GetGDIBrush(IFillAttributes elem, SvgDocument doc)
Parameters
Type | Name | Description |
---|---|---|
IFillAttributes | elem | The fill attributes. |
SvgDocument | doc | The doc. |
Returns
Type | Description |
---|---|
System.Drawing.Brush | The brush |
GetGDIBrush(SuperElement)
Gets the GDI brush.
Declaration
public static Brush GetGDIBrush(SuperElement elem)
Parameters
Type | Name | Description |
---|---|---|
SuperElement | elem | The element. |
Returns
Type | Description |
---|---|
System.Drawing.Brush | The brush |
GetGDIFont(IFontAttributes)
Gets the GDI font.
Declaration
public static Font GetGDIFont(IFontAttributes elem)
Parameters
Type | Name | Description |
---|---|---|
IFontAttributes | elem | The font attribute. |
Returns
Type | Description |
---|---|
System.Drawing.Font | The font |
GetGDIPen(IStrokeAttributes)
Gets the GDI pen.
Declaration
public static Pen GetGDIPen(IStrokeAttributes elem)
Parameters
Type | Name | Description |
---|---|---|
IStrokeAttributes | elem | The element. |
Returns
Type | Description |
---|---|
System.Drawing.Pen | The pen |
GetGDIPen(SuperElement)
Gets the GDI pen.
Declaration
public static Pen GetGDIPen(SuperElement elem)
Parameters
Type | Name | Description |
---|---|---|
SuperElement | elem | The element. |
Returns
Type | Description |
---|---|
System.Drawing.Pen | The pen |
GetIdFromUrl(String)
Gets the id from URL.
Declaration
public static string GetIdFromUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |
Returns
Type | Description |
---|---|
System.String | The ID |
GetNumber(String)
Gets the number.
Declaration
public static float GetNumber(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
Returns
Type | Description |
---|---|
System.Single | The float value. |
GetNumbers(String)
Gets the numbers.
Declaration
public static float[] GetNumbers(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
Returns
Type | Description |
---|---|
System.Single[] | The float. |
GetSpecialBrush(Element)
Gets the special brush.
Declaration
public static Brush GetSpecialBrush(Element elem)
Parameters
Type | Name | Description |
---|---|---|
Element | elem | The element. |
Returns
Type | Description |
---|---|
System.Drawing.Brush | The brush |
GetUrlFromId(String)
Gets the URL from id.
Declaration
public static string GetUrlFromId(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The id. |
Returns
Type | Description |
---|---|
System.String | The url |
SetGDIBrush(IFillAttributes, Brush)
Sets the GDI brush.
Declaration
public static void SetGDIBrush(IFillAttributes elem, Brush br)
Parameters
Type | Name | Description |
---|---|---|
IFillAttributes | elem | The fill attribute. |
System.Drawing.Brush | br | The brush. |
SetGDIFont(IFontAttributes, Font)
Sets the GDI font.
Declaration
public static void SetGDIFont(IFontAttributes elem, Font font)
Parameters
Type | Name | Description |
---|---|---|
IFontAttributes | elem | The font attribute. |
System.Drawing.Font | font | The font. |
SetGDIPen(IStrokeAttributes, Pen)
Sets the GDI pen.
Declaration
public static void SetGDIPen(IStrokeAttributes elem, Pen pen)
Parameters
Type | Name | Description |
---|---|---|
IStrokeAttributes | elem | The stroke attributes. |
System.Drawing.Pen | pen | The pen. |