Ejemplo n.º 1
0
        internal string ToHash()
        {
            var sb = new StringBuilder();

            sb.AppendFormat("{0},", HasWidth);
            sb.AppendFormat("{0},", Width.ToString(CultureInfo.InvariantCulture));
            sb.AppendFormat("{0},", StyleIndex.ToString(CultureInfo.InvariantCulture));
            sb.AppendFormat("{0},", Hidden);
            sb.AppendFormat("{0},", BestFit);
            sb.AppendFormat("{0},", Phonetic);
            sb.AppendFormat("{0},", OutlineLevel.ToString(CultureInfo.InvariantCulture));
            sb.AppendFormat("{0}", Collapsed);

            return(sb.ToString());
        }
 /// <summary>
 /// Gets the name of the style.
 /// </summary>
 /// <param name="styleIndex">Index of the style.</param>
 /// <returns>System.String.</returns>
 string GetStyleName(StyleIndex styleIndex)
 {
     return(styleIndex.ToString().Replace(" ", "").Replace(",", ""));
 }
Ejemplo n.º 3
0
 string GetStyleName(StyleIndex styleIndex)
 {
     return styleIndex.ToString().Replace(" ", "").Replace(",", "");
 }
Ejemplo n.º 4
0
 public string GetStyleName(StyleIndex styleIndex)
 {
     return(styleIndex.ToString().Replace(" ", string.Empty).Replace(",", string.Empty));
 }
Ejemplo n.º 5
0
 private string GetStyleName(StyleIndex styleIndex) => styleIndex.ToString().Replace(" ", "").Replace(",", "");