FrameworkTextComposition.CompositionOffset Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.