Diagram.Name Property

Gets or sets the name of the diagram.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
<BrowsableAttribute(False)> _
<ElementNameAttribute> _
<DomainObjectIdAttribute("f7a14a3c-f112-404c-8a3e-4037210b71ad")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Diagram/Name.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Diagram/Name.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
Public Property Name As String
'使用
Dim instance As Diagram
Dim value As String

value = instance.Name

instance.Name = value
[BrowsableAttribute(false)]
[ElementNameAttribute]
[DomainObjectIdAttribute("f7a14a3c-f112-404c-8a3e-4037210b71ad")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Diagram/Name.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Diagram/Name.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
public string Name { get; set; }
[BrowsableAttribute(false)]
[ElementNameAttribute]
[DomainObjectIdAttribute(L"f7a14a3c-f112-404c-8a3e-4037210b71ad")]
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.Diagram/Name.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.Diagram/Name.Description", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
public function get Name () : String
public function set Name (value : String)

Property Value

Type: System.String

The name of the diagram.

Permissions

See Also

Reference

Diagram Class

Diagram Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace