public bool IsSelected {get; set;}
Property Value
The default value is false. Setting this property to true will cause this part to be added to the diagram's
SelectedParts collection. Setting this property to false will cause this part to be removed from that collection.