isSelected property

bool isSelected

Gets or sets whether this Part is selected. The initial value is false.

Selected parts typically are shown either with an Adornment or with a different appearance by changing the brush or visibility of one or more of the GraphObjects within the part.

Changing this value does not by itself raise any "ChangingSelection" and "ChangedSelection" DiagramEvents. Tools and the CommandHandler and methods such as Diagram#select do raise those DiagramEvents because they want to surround changes to this property with a single "ChangingSelection" DiagramEvent beforehand and a single "ChangedSelection" afterwards.

Implementation

_i2.bool get isSelected => _i4.getProperty(
      this,
      'isSelected',
    );
void isSelected=(bool value)

Implementation

set isSelected(_i2.bool value) {
  _i4.setProperty(
    this,
    'isSelected',
    value,
  );
}