예제 #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(",", ""));
 }
예제 #3
0
 string GetStyleName(StyleIndex styleIndex)
 {
     return styleIndex.ToString().Replace(" ", "").Replace(",", "");
 }
예제 #4
0
 public string GetStyleName(StyleIndex styleIndex)
 {
     return(styleIndex.ToString().Replace(" ", string.Empty).Replace(",", string.Empty));
 }
예제 #5
0
 private string GetStyleName(StyleIndex styleIndex) => styleIndex.ToString().Replace(" ", "").Replace(",", "");