TextContextMenuEventArgs Class
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Server. Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.Server. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
- Inherits
- Event
Args - Text
Context Menu Event Args
- Event
Description
The TextContextMenuEventArgs class provides data for the ServerVisualization.TextViewGenerator.TextContextMenuOpening event. It provides an array of menu items for a certain location in a document. The ContextMenuLocation property informs for which part of the document the items have been generated.
Syntax
public class TextContextMenuEventArgs : EventArgsPublic Class TextContextMenuEventArgs
Inherits EventArgsExamples
The following example includes the context menu location value from a Text Context Menu Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Context Menu Location: {textContextMenuEventArgs.ContextMenuLocation}");
Console.WriteLine("Text Context Menu Event Args is ready for use.");Console.WriteLine($"Context Menu Location: {textContextMenuEventArgs.ContextMenuLocation}")
Console.WriteLine("Text Context Menu Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| ContextMenuLocation | Gets the location in the document for which the menu items have been generated. The generated items depend on this location. The property value can be a combination (bitwise or) of the ContextMenuLocation values. |
| Items | Gets an array of ServerVisualization.MenuItem objects. These objects contain all data necessary to display a context menu. |
| Location | Gets the location, in pixels, where the context menu should be displayed. The coordinates are relative to the top-left corner of the screen. |
| RightToLeft | Gets a value indicating whether the context menu must be shown from right to left. |