Delen via


Diagram.Name Property

Gets or sets the name of the diagram.

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

Syntax

'Declaration
<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")> _
<BrowsableAttribute(False)> _
<ElementNameAttribute> _
<DomainObjectIdAttribute("f7a14a3c-f112-404c-8a3e-4037210b71ad")> _
Public Property Name As String
[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")]
[BrowsableAttribute(false)]
[ElementNameAttribute]
[DomainObjectIdAttribute("f7a14a3c-f112-404c-8a3e-4037210b71ad")]
public string Name { get; set; }
[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")]
[BrowsableAttribute(false)]
[ElementNameAttribute]
[DomainObjectIdAttribute(L"f7a14a3c-f112-404c-8a3e-4037210b71ad")]
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
[<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")>]
[<BrowsableAttribute(false)>]
[<ElementNameAttribute>]
[<DomainObjectIdAttribute("f7a14a3c-f112-404c-8a3e-4037210b71ad")>]
member Name : string with get, set
function get Name () : String 
function set Name (value : String)

Property Value

Type: System.String
The name of the diagram.

.NET Framework Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace