Wiki Markup |
---|
{description} {excerpt}Sets the value of the specified property.{excerpt} {signature:C#} public void SetProperty(BuiltInProperty property, System.Object propertyValue) {signature}{signature:vb.net} Public Sub SetProperty(ByVal [property] As BuiltInProperty, ByVal propertyValue As Object) {signature} {parameters} {param:property}A [DocumentProperties.BuiltInProperty|DocumentProperties.BuiltInProperty] object that represents the built\-in property to set.{param} {param:propertyValue}An {{Object}} that represents the value of the property specified.{param} {remarks}MS Word equivalent: File menu > Properties > Custom tab > Properties: {remarks} {example}{code:csharp|title=C#} //--- Set "Author" Property docProps.SetProperty(DocumentProperties.BuiltInProperty.Author, "Fred Jones"); {code} {code:vb.net|title=vb.net} '--- Set "Priority" Property docProps.SetProperty(DocumentProperties.BuiltInProperty.Author, "Fred Jones") {code} {example} |
Page History
Overview
Content Tools