예제 #1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append(Bold.ToString());
            sb.Append("-");
            sb.Append(Italic.ToString());
            sb.Append("-");
            sb.Append(Underline.ToString());
            sb.Append("-");
            sb.Append(Strikethrough.ToString());
            sb.Append("-");
            sb.Append(VerticalAlignment.ToString());
            sb.Append("-");
            sb.Append(Shadow.ToString());
            sb.Append("-");
            sb.Append(FontSize.ToString());
            sb.Append("-");
            sb.Append(FontColor);
            sb.Append("-");
            sb.Append(FontName);
            sb.Append("-");
            sb.Append(FontFamilyNumbering.ToString());
            return(sb.ToString());
        }
예제 #2
0
 public override string ToString()
 {
     return("[m_bBold=" + Bold.ToString() + ";" +
            "m_bItalic=" + Italic.ToString() + ";" +
            "m_nFontSize=" + FontSize.ToString() + ";" +
            "m_sID=" + ID + ";]" +
            "Text=" + Text + "]");
 }
예제 #3
0
 /// <summary>
 /// Converts this Font instance to a human-readable string.
 /// </summary>
 /// <returns>A string representation of this Font.</returns>
 public override string ToString()
 {
     return(OverrideHelper.ToString(
                "FontFamilyName", FontFamilyName,
                "FontSize", FontSize.ToString(),
                "Italic", Italic.ToString(),
                "Bold", Bold.ToString(),
                "WordWrapping", WordWeapping.ToString()));
 }