FrameworkTextComposition.CompositionOffset Property

Definition

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

public:
 property int CompositionOffset { int get(); };
public int CompositionOffset { get; }
member this.CompositionOffset : int
Public ReadOnly Property CompositionOffset As Integer

Property Value

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

Remarks

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 Versions and Dependencies.

Applies to