DiagramPackage Class
Represents a native metadata package in a diagram format.
Inheritance Hierarchy
SystemObject
  GroupDocs.Metadata.CommonMetadataPackage
    GroupDocs.Metadata.CommonCustomPackage
      GroupDocs.Metadata.Formats.DocumentDocumentPackage
        GroupDocs.Metadata.Formats.DocumentDiagramPackage

Namespace: GroupDocs.Metadata.Formats.Document
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public class DiagramPackage : DocumentPackage

The DiagramPackage type exposes the following members.

Properties
  NameDescription
Public propertyAlternateNames
Gets or sets the alternate names for the document. Can be updated in VDX and VSX formats only.
Public propertyBuildNumberCreated
Gets the full build number of the instance used to create the document.
Public propertyBuildNumberEdited
Gets the build number of the instance last used to edit the document.
Public propertyCategory
Gets or sets the descriptive text for the type of drawing, such as flowchart or office layout. This text can also be entered in the Microsoft Visio user interface in the Category box in the Properties dialog box.
Public propertyCompany
Gets or sets the user-entered information identifying the company creating the drawing or the company the drawing is being created for. Maximum length is 63 characters.
Public propertyCount
Gets the number of metadata properties.
(Inherited from MetadataPackage.)
Public propertyCreator
Gets or sets the person who created or last updated the file. The maximum length is 63 characters..
Public propertyDescription
Gets or sets a descriptive text string for the document. Use this element to store important information about the document, such as its purpose, recent changes, or pending changes. The maximum is 191 characters.
Public propertyHyperlinkBase
Gets or sets the path to be used for relative hyperlinks (hyperlinks for which the linked file location is described in relation to the Microsoft Visio diagram). By default, a hyperlink path is relative to the current document unless a different path is specified in this element. Maximum length is 256 characters.
Public propertyItem
Gets the MetadataProperty with the specified name.
(Inherited from MetadataPackage.)
Public propertyKeys
Gets a collection of the metadata property names.
(Inherited from MetadataPackage.)
Public propertyKeywords
Gets or sets a text string that identifies topics or other important information about the file, such as project name, client name, or version number. The maximum string length is 63 characters.
Public propertyKnowPropertyDescriptors Obsolete.
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.)
Public propertyLanguage
Gets or sets the language of the document. Can be updated in VSD and VSDX formats only.
Public propertyManager
Gets or sets a user-entered text string identifying the person in charge of the project or department. The maximum length is 63 characters.
Public propertyMetadataType
Gets the metadata type.
(Inherited from MetadataPackage.)
Public propertyPreviewPicture
Gets or sets the preview picture.
Public propertyPropertyDescriptors
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.)
Public propertySubject
Gets or sets a user-defined text string that describes the contents of the document. Maximum length is 63 characters.
Public propertyTemplate
Gets or sets a string value specifying the file name of the template from which the document was created.
Public propertyTimeCreated
Gets or sets a date and time value indicating when the document was created.
Public propertyTimeEdited
Gets a date and time value indicating when the document was last edited.
Public propertyTimePrinted
Gets a date and time value indicating when the document was last printed.
Public propertyTimeSaved
Gets a date and time value indicating when the document was last saved.
Public propertyTitle
Gets or sets a user-defined text string that serves as a descriptive title for the document. Maximum length is 63 characters.
Methods
  NameDescription
Public methodAddProperties
Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodClear
Removes all writable metadata properties from the package.
(Inherited from DocumentPackage.)
Public methodClearBuiltInProperties
Removes all built-in metadata properties.
(Inherited from DocumentPackage.)
Public methodClearCustomProperties
Removes all custom metadata properties.
(Inherited from DocumentPackage.)
Public methodContains
Determines whether the package contains a metadata property with the specified name.
(Inherited from MetadataPackage.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindProperties
Finds the metadata properties satisfying the specified predicate. The search is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from MetadataPackage.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes a writable metadata property by the specified name.
(Inherited from DocumentPackage.)
Public methodRemoveProperties
Removes metadata properties satisfying the specified predicate.
(Inherited from MetadataPackage.)
Public methodSanitize
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodSet(String, Boolean)
Adds or replaces the metadata property with the specified name.
Public methodSet(String, DateTime)
Adds or replaces the metadata property with the specified name.
Public methodSet(String, Double)
Adds or replaces the metadata property with the specified name.
Public methodSet(String, String)
Adds or replaces the metadata property with the specified name.
Public methodSetProperties
Sets known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. This method is a combination of AddProperties(FuncMetadataProperty, Boolean, PropertyValue) and UpdateProperties(FuncMetadataProperty, Boolean, PropertyValue). If an existing property satisfies the predicate its value is updated. If there is a known property missing in the package that satisfies the predicate it is added to the package.
(Inherited from MetadataPackage.)
Public methodToString (Inherited from Object.)
Public methodUpdateProperties
Updates known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Remarks
Examples
This code sample demonstrates how to extract built-in metadata properties from a diagram.
C#
using (Metadata metadata = new Metadata(Constants.InputVsdx))
{
    var root = metadata.GetRootPackage<DiagramRootPackage>();

    Console.WriteLine(root.DocumentProperties.Creator);
    Console.WriteLine(root.DocumentProperties.Company);
    Console.WriteLine(root.DocumentProperties.Keywords);
    Console.WriteLine(root.DocumentProperties.Language);
    Console.WriteLine(root.DocumentProperties.TimeCreated);
    Console.WriteLine(root.DocumentProperties.Category);

    // ... 
}
See Also