Class TextUtils
Inheritance
System.Object
TextUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class TextUtils
Methods
ContainsRtlChars(String)
Declaration
public static bool ContainsRtlChars(string itemText)
Parameters
Type |
Name |
Description |
System.String |
itemText |
|
Returns
Type |
Description |
System.Boolean |
|
ConvertXmlToPlain(String)
Declaration
public static string ConvertXmlToPlain(string xml)
Parameters
Type |
Name |
Description |
System.String |
xml |
|
Returns
Type |
Description |
System.String |
|
EqualsOfParagraphSettings(ParagraphSettings, ParagraphSettings)
Declaration
public static bool EqualsOfParagraphSettings(ParagraphSettings settings1, ParagraphSettings settings2)
Parameters
Type |
Name |
Description |
Aurigma.GraphicsMill.AdvancedDrawing.ParagraphSettings |
settings1 |
|
Aurigma.GraphicsMill.AdvancedDrawing.ParagraphSettings |
settings2 |
|
Returns
Type |
Description |
System.Boolean |
|
GetItemFonts(BaseTextItem, IFontService)
Declaration
public static IEnumerable<string> GetItemFonts(BaseTextItem item, IFontService fontService)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
GetItemFontsExtended(BaseTextItem)
Declaration
public static IEnumerable<FontInfo> GetItemFontsExtended(BaseTextItem item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo> |
|
GetMaxFontSize(BaseTextItemHandler, Boolean)
Declaration
public static float GetMaxFontSize(BaseTextItemHandler textItemHandler, bool isFormatted)
Parameters
Returns
Type |
Description |
System.Single |
|
IsEmpty(String)
Declaration
public static bool IsEmpty(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.Boolean |
|
IsEmptyXmlText(String)
Declaration
public static bool IsEmptyXmlText(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.Boolean |
|
IsValidXml(String)
Declaration
public static bool IsValidXml(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.Boolean |
|
ProcessSpanStyles(String, Func<Dictionary<String, String[]>, Boolean>, Func<Dictionary<String, String[]>, Tuple<String, String>>)
Declaration
public static string ProcessSpanStyles(string gmXml, Func<Dictionary<string, string[]>, bool> processStyle = null, Func<Dictionary<string, string[]>, Tuple<string, string>> createExtraAttribute = null)
Parameters
Type |
Name |
Description |
System.String |
gmXml |
|
System.Func<System.Collections.Generic.Dictionary<System.String, System.String[]>, System.Boolean> |
processStyle |
|
System.Func<System.Collections.Generic.Dictionary<System.String, System.String[]>, System.Tuple<System.String, System.String>> |
createExtraAttribute |
|
Returns
Type |
Description |
System.String |
|
ProcessXmlTexts(String, Action<XText>)
Declaration
public static string ProcessXmlTexts(string gmXml, Action<XText> processTextNode)
Parameters
Type |
Name |
Description |
System.String |
gmXml |
|
System.Action<System.Xml.Linq.XText> |
processTextNode |
|
Returns
Type |
Description |
System.String |
|
RemoveSpanAttribute(String, String)
Declaration
public static string RemoveSpanAttribute(string gmXml, string attributeName)
Parameters
Type |
Name |
Description |
System.String |
gmXml |
|
System.String |
attributeName |
|
Returns
Type |
Description |
System.String |
|
ScaleTextFontSize(String, Single, Nullable<Single>, Nullable<Single>)
Declaration
public static string ScaleTextFontSize(string gmXml, float scale, float? minFontSize, float? maxFontSize)
Parameters
Type |
Name |
Description |
System.String |
gmXml |
|
System.Single |
scale |
|
System.Nullable<System.Single> |
minFontSize |
|
System.Nullable<System.Single> |
maxFontSize |
|
Returns
Type |
Description |
System.String |
|
XmlEscape(String)
Declaration
public static string XmlEscape(string unescaped)
Parameters
Type |
Name |
Description |
System.String |
unescaped |
|
Returns
Type |
Description |
System.String |
|
XmlUnescape(String)
Declaration
public static string XmlUnescape(string escaped)
Parameters
Type |
Name |
Description |
System.String |
escaped |
|
Returns
Type |
Description |
System.String |
|