Delen via


SelectedShapesCollection.PrimaryItem Property

Gets the primary DiagramItem in the selection.

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

Syntax

'Declaration
Public Property PrimaryItem As DiagramItem
public DiagramItem PrimaryItem { get; set; }
public:
property DiagramItem^ PrimaryItem {
    DiagramItem^ get ();
    void set (DiagramItem^ value);
}
member PrimaryItem : DiagramItem with get, set
function get PrimaryItem () : DiagramItem 
function set PrimaryItem (value : DiagramItem)

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem

Remarks

Setting the primary item in the selection does not set the focus. The focus must be set separately.

.NET Framework Security

See Also

Reference

SelectedShapesCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace