Share via


KeyboardInputBuffer Class

Definition

Provides access to a text buffer that is used to aggregate user input to the Software Input Panel keyboard on the phone.

public ref class KeyboardInputBuffer sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Phone.PhoneInternalContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneInternalContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class KeyboardInputBuffer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneInternalContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Phone.PhoneInternalContract")]
class KeyboardInputBuffer final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Phone.PhoneInternalContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneInternalContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class KeyboardInputBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneInternalContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Phone.PhoneInternalContract")]
public sealed class KeyboardInputBuffer
Public NotInheritable Class KeyboardInputBuffer
Inheritance
Object Platform::Object IInspectable KeyboardInputBuffer
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Phone.PhoneInternalContract (introduced in v1.0)

Remarks

Windows Phone 8

This API is supported in native apps only.

Constructors

KeyboardInputBuffer()

Initializes a new instance of the KeyboardInputBuffer class.

Properties

InputScope

Gets or sets the input scope which determines the set of keys displayed on the Software Input Panel keyboard on the phone

SelectionLength

Gets the number of characters in the current selection in the input buffer.

SelectionStart

Gets the starting position of the text selected in the input buffer.

Text

Gets or sets the contents of the input buffer.

Methods

Select(UInt32, UInt32)

Selects a range of text in the input buffer.

SelectFromTap(UInt32)

Selects a range of text as if the user had tapped on the specified character in the input buffer.

Events

SelectionChanged

Occurs when the text selection within the input buffer has changed.

TextChanged

Occurs when the content changes in the input buffer.

Applies to