forked from stride3d/stride
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextEventArgs.cs
More file actions
34 lines (29 loc) · 1.08 KB
/
TextEventArgs.cs
File metadata and controls
34 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Input;
using Stride.UI.Events;
namespace Stride.UI
{
/// <summary>
/// The arguments associated with a <see cref="TextInputEvent"/>
/// </summary>
public class TextEventArgs : RoutedEventArgs
{
/// <summary>
/// The text that was entered
/// </summary>
public string Text { get; init; }
/// <summary>
/// The type of text input event
/// </summary>
public TextInputEventType Type { get; init; }
/// <summary>
/// Start of the current composition being edited
/// </summary>
public int CompositionStart { get; init; }
/// <summary>
/// Length of the current part of the composition being edited
/// </summary>
public int CompositionLength { get; init; }
}
}