Xamarin Pack Programmer's Guide
In-place Editing the Contents of Items

To activate the standard in-place editing of the text of MindFusion.Diagramming for Xamarin objects, set the AllowInplaceEdit property to true. AllowInplaceEdit allows in-place editing the content of a diagram element through the context menu. To display the context menu, tap and hold over an item without moving. In-place editing mode can be accepted and exited by clicking anywhere outside the text-field.

In-place editing can be applied to the following properties: ShapeNode.TextDiagramLink.Text, TableNode.Cell.Text, TableNode.Caption and ContainerNode.Caption. For tables, both captions and cells can be edited in this way.

If you want to enable/disable in-place editing of a specific table's cell, handle the CellTextEditing event. To enable/disable in-place editing of nodes, handle the NodeTextEditing event. For a DiagramLink object, the LinkTextEditing event is raised while in-place editing. These validation events let you prevent users from editing the text in the particular object if it is necessary.

When in-place editing of a node is completed, the NodeTextEdited event is raised. For a table's cell, handle the CellTextEdited event. LinkTextEdited event is raised when in-place editing of a DiagramLink object completes.

To enter in-place editing mode programmatically and let users edit an item's text inline, call the BeginEdit method of Diagram. The EndEdit method exits in-place editing mode.