allowMidVertexSelection property

bool allowMidVertexSelection

True if a mid-vertex of a polygon or polyline can be interactively selected, false otherwise. Default is true.

By default, mid-vertices (GeometryEditorMidVertex) are displayed and can be helpful in interactive workflows to provide a visual cue that new vertices can be inserted between the existing vertices of polygons and polylines. They may be most helpful for users with less editing experience.

If true, and InteractionConfiguration.allowVertexCreation is also true, then you can select and drag a mid-vertex to insert a vertex into the GeometryEditor.geometry and immediately move it to the required position.

If false, and you also do not intend to programmatically select any mid-vertices (GeometryEditor.selectMidVertex) then set GeometryEditorStyle.midVertexSymbol to null to prevent the display of unusable mid-vertices.

Whether true or false, a mid-vertex can be selected by GeometryEditor.selectMidVertex.

InteractionConfiguration.setAllowSelection sets this property.

Implementation

bool get allowMidVertexSelection {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_InteractionConfiguration_getAllowMidVertexSelection(
      _handle,
      errorHandler,
    );
  });
}
void allowMidVertexSelection=(bool value)

Implementation

set allowMidVertexSelection(bool value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_InteractionConfiguration_setAllowMidVertexSelection(
      _handle,
      value,
      errorHandler,
    );
  });
}