Search
ShapeListBox.ShapeRenamed Event
See Also
 





Raised when the user renames a shape in the list box.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms.Controls

 Syntax

C#  Copy Code

public event EventHandler<ShapeEventArgs> ShapeRenamed

Visual Basic  Copy Code

Public Event ShapeRenamed As EventHandler(Of ShapeEventArgs)

 Event Data

ShapeRenamed event handlers receive an argument of type ShapeEventArgs. The following ShapeEventArgs members provide information relevant to the event.

Member name

Description

Shape

Refers to a Shape instance that represents the renamed shape.

Index

Indicates the shape position within the Items collection of the list box.

OldName

Indicates the old DisplayName of the renamed shape.

 Remarks

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.

 See Also