共用方式為


SelectedShapesCollection.PrimaryItem Property

Definition

Gets the primary DiagramItem in the selection.

public:
 property Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ PrimaryItem { Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ get(); void set(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ value); };
public Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem PrimaryItem { get; set; }
member this.PrimaryItem : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem with get, set
Public Property PrimaryItem As DiagramItem

Property Value

Remarks

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

Applies to