Class RichTextBuilder
Namespace: Aurigma.DesignAtoms.Convert.Psd
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class RichTextBuilder
Inheritance: System.Object -> RichTextBuilder
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
NormalizeString
public static string NormalizeString(string str, FontCaps caps)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | str | |
Aurigma.GraphicsMill.Codecs.Psd.FontCaps | caps |
Returns
System.String
GetRichTextAndColorPalette
public static Tuple<string, List<Color>> GetRichTextAndColorPalette(IFontService fontService, IGmColorConverter gmColorConverter, PsdTextFrame textFrame, BaseTextItem textItem, bool legacyTextEngine)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Services.IFontService | fontService | |
| Aurigma.DesignAtoms.ColorManagement.IGmColorConverter | gmColorConverter | |
Aurigma.GraphicsMill.Codecs.Psd.PsdTextFrame | textFrame | |
| Aurigma.DesignAtoms.Model.Items.BaseTextItem | textItem | |
System.Boolean | legacyTextEngine |
Returns
System.Tuple<System.String,System.Collections.Generic.List<Aurigma.DesignAtoms.Model.Color.Color>>
AddColorToPalette
public static int AddColorToPalette(List<Color> palette, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.List<Aurigma.DesignAtoms.Model.Color.Color> | palette | |
| Aurigma.DesignAtoms.Model.Color.Color | color |
Returns
System.Int32
ApplyLastSpanStyle
public static void ApplyLastSpanStyle(PsdTextFrame textFrame, BaseTextItem textItemHandler, IGmColorConverter gmColorConverter)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.Codecs.Psd.PsdTextFrame | textFrame | |
| Aurigma.DesignAtoms.Model.Items.BaseTextItem | textItemHandler | |
| Aurigma.DesignAtoms.ColorManagement.IGmColorConverter | gmColorConverter |
ReplaceTextInXml
public static string ReplaceTextInXml(string text, string oldText, string newText)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | text | |
System.String | oldText | |
System.String | newText |
Returns
System.String
RemoveUnderline
public static string RemoveUnderline(string text)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | text |
Returns
System.String
Fields
FullColorAttributeName
public const string FullColorAttributeName = "data-full-color"