Raised when the user renames a shape in the list box.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms.Controls
C# Copy Code |
---|
public event EventHandler<ShapeEventArgs> ShapeRenamed |
Visual Basic Copy Code |
---|
Public Event ShapeRenamed As EventHandler(Of ShapeEventArgs) |
ShapeRenamed event handlers receive an argument of type ShapeEventArgs. The following ShapeEventArgs members provide information relevant to the event.
Member name | Description |
---|---|
Refers to a Shape instance that represents the renamed shape. | |
Indicates the shape position within the Items collection of the list box. | |
Indicates the old DisplayName of the renamed shape. |
Users can rename list box items by pressing F2. To enable this, set the AllowRename property to true.
Renaming an item in the list box does actually change the DisplayName property of the corresponding Shape. At the moment when the event is raised, that property already contains the value entered by the user. Its old value is accessible through the OldName event argument.