This documentation is archived and is not being maintained.

InPlaceDirection Enumeration

Specifies the preferred direction of the in-place Input Panel relative to the text entry field.

Namespace: Microsoft.Ink.TextInput
Assembly: Microsoft.Ink (in

public enum InPlaceDirection
public enum InPlaceDirection
public enum InPlaceDirection

 Member nameDescription
AutoRestore the system default. 
BottomPreferred direction is above the text entry field. 
TopPreferred direction is below the text entry field. 

An application can specify whether the in-place Input Panel defaults appear above or below a text entry field by setting the PreferredInPlaceDirection to Bottom or Top. PreferredInPlaceDirection is a preference because the in-place Input Panel overrides the preference set by the application when necessary to keep Input Panel on the screen. The system default is to position the in-place Input Panel below a text field when possible; otherwise it is positioned above. Setting the PreferredInPlaceDirection to Auto restores the system default.

The following example demonstrates the use of Top. The tip object is an instance of TextInputPanel. An editable field where the focus is placed is represented by TextBoxTextBox control, textBox1.

tip.PreferredInPlaceDirection = InPlaceDirection.Top;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0