TX Text Control X9: Ready-to-use Built-in Context Menus
Built-in Context Menus and Icon-sets TX Text Control X9 includes ready-to-use contextual menus. These dynamic menus are available by default and usable without any additional programming. You can use the context menu to insert headers and footers or to adjust the page layout or borders: The following screenshot shows a context menu that is shown when no text is selected: When the input position is inside a table, the following context menu options are available: The context menus can be…

Built-in Context Menus and Icon-sets
TX Text Control X9 includes ready-to-use contextual menus. These dynamic menus are available by default and usable without any additional programming.
You can use the context menu to insert headers and footers or to adjust the page layout or borders:

The following screenshot shows a context menu that is shown when no text is selected:

When the input position is inside a table, the following context menu options are available:

The context menus can be fully customized using the new TextContextMenuOpening event. This event can be used to alter or to expand the predefined menu, to provide a custom designed menu or to completely suppress the menu.

The event returns a native ContextMenuStrip that can be manipulated. Items can be removed or added and menu item icons can be replaced.
You can easily change the context menu and add an additional item. The following code shows how to add an item to insert a merge field at the current input position:
private void textControl1_TextContextMenuOpening(object sender,
TXTextControl.TextContextMenuEventArgs e)
{
ContextMenuStrip menu = e.TextContextMenu;
ToolStripItem item = new ToolStripMenuItem("Insert Field");
item.Click += item_Click;
menu.Items.Add(item);
}
void item_Click(object sender, EventArgs e)
{
textControl1.TextFields.Add(new TXTextControl.TextField("Test"));
}
In order to provide these ready-to-use context menus, TX Text Control .NET for Windows Forms X9 ships with more than 400 large and small icons that can be used in your applications.


Related Posts
TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version
TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…
ASP.NETASP.NET CoreDocument Viewer
High-Performance Text Replacement in Large DOCX Files using C# .NET
Learn how to efficiently replace text in large DOCX files using C# .NET and the ServerTextControl component from Text Control. This article demonstrates the performance benefits of using the…
ASP.NETASP.NET CoreDocument Viewer
Document Viewer 33.2.1 Released: New Event and Bug Fixes
This service pack includes important bug fixes and improvements to enhance the stability and performance of the Document Viewer. In addition, a new event has been introduced to provide developers…
ASP.NETAccessibilityASP.NET Core
Upcoming Support for PDF/UA Compliance and Tagged PDF Generation in Version 34.0
We are happy to announce that version 34.0 will support PDF/UA compliance and the creation of tagged PDF documents. This significant update demonstrates our ongoing commitment to accessibility by…
TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version
TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…