Esempio n. 1
0
        public OpenXmlDocumentPropertiesModel(string author, string title, string description)
        {
            this._propertyPart = new CorePropertiesPart();
            CT_CoreProperties cT_CoreProperties = (CT_CoreProperties)this._propertyPart.Root;

            cT_CoreProperties.Creator = new SimpleLiteral
            {
                Content = WordOpenXmlUtils.Escape(author)
            };
            cT_CoreProperties.Title = new SimpleLiteral
            {
                Content = WordOpenXmlUtils.Escape(title)
            };
            cT_CoreProperties.Description = new SimpleLiteral
            {
                Content = WordOpenXmlUtils.Escape(description)
            };
        }
Esempio n. 2
0
        internal OpenXmlDocumentPropertiesModel(string author, string title, string description)
        {
            _propertyPart = new CorePropertiesPart();
            CT_CoreProperties obj = (CT_CoreProperties)_propertyPart.Root;

            obj.Creator = new SimpleLiteral
            {
                Content = WordOpenXmlUtils.Escape(author)
            };
            obj.Title = new SimpleLiteral
            {
                Content = WordOpenXmlUtils.Escape(title)
            };
            obj.Description = new SimpleLiteral
            {
                Content = WordOpenXmlUtils.Escape(description)
            };
        }
Esempio n. 3
0
 public void SetFont(string name, bool rightToLeft)
 {
     _font              = WordOpenXmlUtils.Escape(name);
     _rightToLeftStyle |= rightToLeft;
 }