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 != ""); }
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); }
readonly RTFVariable _ID; //язык #endregion Fields #region Constructors public RTFHeaderLang(int ID) { _ID = new RTFVariable("deflang", ID, true); }
readonly RTFVariable _index; //язык #endregion Fields #region Constructors public RTFHeaderDefaultFont(int index) { _index = new RTFVariable("deff", index, true); }