TX Text Control .NET Server

ContextMenusEnabled Property

Property|Introduced in 22.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Specifies or returns a value indicating if a right click opens a context menu or not.

Syntax

public bool ContextMenusEnabled { get; set; }

Examples

In the current ASP.NET Core integration, ContextMenusEnabled is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.ContextMenusEnabled = true;
if (textControlSettings.ContextMenusEnabled)
{
    Console.WriteLine("Context Menus Enabled is enabled for Text Control Settings.");
}