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(",", "")); }
string GetStyleName(StyleIndex styleIndex) { return styleIndex.ToString().Replace(" ", "").Replace(",", ""); }
public string GetStyleName(StyleIndex styleIndex) { return(styleIndex.ToString().Replace(" ", string.Empty).Replace(",", string.Empty)); }
private string GetStyleName(StyleIndex styleIndex) => styleIndex.ToString().Replace(" ", "").Replace(",", "");