New to Telerik UI for WinForms? Download free 30-day trial

Text Tool

The TextTool allows you to enter the edit mode of a RadDiagramItem as soon as you click on it. Furthermore, you can use this tool to draw text shapes. As it isn't active by default, you can use the RadDiagram.ActiveTool property to activate it:

Active Tool

this.radDiagram1.ActiveTool = Telerik.Windows.Diagrams.Core.MouseTool.TextTool;

Me.RadDiagram1.ActiveTool = Telerik.Windows.Diagrams.Core.MouseTool.TextTool

Let's consider we already have a shape in RadDiagram. As soon as you click on the shape, you will enter its edit mode. This way you can easily modify its content.

Figure 1: Edit shape

WinForms RadDiagram Edit Shape

And what is more, as soon as you activate the TextTool, you can dynamically create a text shape by dragging a rectangle on the diagramming surface:

Figure 2: Create shape

WinForms RadDiagram Create shape

In this article