Skip to main content

Class RichTextBuilder

Namespace: Aurigma.DesignAtoms.Convert.Psd​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
public static class RichTextBuilder

Inheritance: System.Object -> RichTextBuilder

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

Methods​

NormalizeString​

public static string NormalizeString(string str, FontCaps caps)
Parameters​
TypeNameDescription
System.Stringstr
Aurigma.GraphicsMill.Codecs.Psd.FontCapscaps
Returns​

System.String

GetRichTextAndColorPalette​

public static Tuple<string, List<Color>> GetRichTextAndColorPalette(IFontService fontService, IGmColorConverter gmColorConverter, PsdTextFrame textFrame, BaseTextItem textItem, bool legacyTextEngine)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Services.IFontServicefontService
Aurigma.DesignAtoms.ColorManagement.IGmColorConvertergmColorConverter
Aurigma.GraphicsMill.Codecs.Psd.PsdTextFrametextFrame
Aurigma.DesignAtoms.Model.Items.BaseTextItemtextItem
System.BooleanlegacyTextEngine
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​
TypeNameDescription
System.Collections.Generic.List<Aurigma.DesignAtoms.Model.Color.Color>palette
Aurigma.DesignAtoms.Model.Color.Colorcolor
Returns​

System.Int32

ApplyLastSpanStyle​

public static void ApplyLastSpanStyle(PsdTextFrame textFrame, BaseTextItem textItemHandler, IGmColorConverter gmColorConverter)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.Codecs.Psd.PsdTextFrametextFrame
Aurigma.DesignAtoms.Model.Items.BaseTextItemtextItemHandler
Aurigma.DesignAtoms.ColorManagement.IGmColorConvertergmColorConverter

ReplaceTextInXml​

public static string ReplaceTextInXml(string text, string oldText, string newText)
Parameters​
TypeNameDescription
System.Stringtext
System.StringoldText
System.StringnewText
Returns​

System.String

RemoveUnderline​

public static string RemoveUnderline(string text)
Parameters​
TypeNameDescription
System.Stringtext
Returns​

System.String

Fields​

FullColorAttributeName​

public const string FullColorAttributeName = "data-full-color"
Was this page helpful?