ContextMenuEventArgs ContextMenuEventArgs ContextMenuEventArgs Class

Definition

Provides event data for the ContextMenuOpening event that exists on several text-related UI elements.

public sealed class ContextMenuEventArgspublic sealed class ContextMenuEventArgsPublic NotInheritable Class ContextMenuEventArgs
Inheritance
ContextMenuEventArgsContextMenuEventArgsContextMenuEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Properties

CursorLeft CursorLeft CursorLeft CursorLeft

Gets the pixel offset of the text cursor horizontal position.

public double CursorLeft { get; }public double CursorLeft { get; }Public ReadOnly Property CursorLeft As doublepublic double CursorLeft { get; }
Value
double double double

A value in pixels.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

CursorTop CursorTop CursorTop CursorTop

Gets the pixel offset of the text cursor vertical position.

public double CursorTop { get; }public double CursorTop { get; }Public ReadOnly Property CursorTop As doublepublic double CursorTop { get; }
Value
double double double

A value in pixels.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Handled Handled Handled Handled

Gets or sets a value that marks the routed event as handled. A true value for Handled prevents most handlers along the event route from handling the same event again.

public bool Handled { get; set; }public bool Handled { get; set; }Public ReadWrite Property Handled As boolpublic bool Handled { get; set; }
Value
bool bool bool

True to mark the routed event handled. False to leave the routed event unhandled, which permits the event to potentially route further and be acted on by other handlers. The default is false.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)