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) }; }
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) }; }
public void SetFont(string name, bool rightToLeft) { _font = WordOpenXmlUtils.Escape(name); _rightToLeftStyle |= rightToLeft; }