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 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) }; }
public CoreMapping(CorePropertiesPart corePart, XmlWriterSettings xws) : base(XmlWriter.Create(corePart.GetStream(), xws)) { }