FrameworkTextComposition.CompositionOffset Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the position at which the composition text occurs in the TextBox.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public int CompositionOffset { get; }

Property Value

Type: System.Int32

The position at which the composition text occurs in the TextBox.

This property is only meaningful when the TextInputStart or TextInputUpdate event occurs. When the TextInput event occurs, CompositionLength is –1, and the ResultOffset property indicates the position of the composition text.

CompositionOffset is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework
Available since 3.0
Return to top
Show: