示例#1
0
        readonly RTFVariable _index; //индекс который будет характеризовать шрифт

        #endregion Fields

        #region Constructors

        public RTFHeaderFontDescribe(int index, RTFExtension.RTFFontFamily family, int charset, int codepage, string fontname, string fontnameALT)
        {
            _index = new RTFVariable("f", index, true); //обязательно
            _family = new RTFVariable(family.GetStringRTF(), true); //обязательно
            _charset = new RTFVariable("fcharset", charset, charset >= 0);
            _codepage = new RTFVariable("cpg", codepage, codepage >= 0);
            _fontname = fontname;//обязательно
            _fontnameALT = new RTFVariable("falt", " " + fontnameALT, fontnameALT != "");
        }
示例#2
0
文件: RTF.cs 项目: VLunev/RachetRR4
        readonly RTFVariable _codepage; //Кодовая страница

        #endregion Fields

        #region Constructors

        public RTFHeaderCharacterset(RTFExtension.RTFCharacterset charset, int codepage)
        {
            _charset = new RTFVariable(charset.GetStringRTF(), true);
            _codepage = new RTFVariable("ansicpg", codepage, true);
        }