Поделиться через


TextInputPanel.PreferredInPlaceDirection - свойство

Обновлен: Ноябрь 2007

Gets or sets the preferred direction of the in-place Input Panel relative to the text entry field.

Пространство имен:  Microsoft.Ink.TextInput
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Property PreferredInPlaceDirection As InPlaceDirection
'Применение
Dim instance As TextInputPanel
Dim value As InPlaceDirection

value = instance.PreferredInPlaceDirection

instance.PreferredInPlaceDirection = value
public InPlaceDirection PreferredInPlaceDirection { get; set; }
public:
property InPlaceDirection PreferredInPlaceDirection {
    InPlaceDirection get ();
    void set (InPlaceDirection value);
}
/** @property */
public InPlaceDirection get_PreferredInPlaceDirection()
/** @property */
public  void set_PreferredInPlaceDirection(InPlaceDirection value)
public function get PreferredInPlaceDirection () : InPlaceDirection
public function set PreferredInPlaceDirection (value : InPlaceDirection)

Значение свойства

Тип: Microsoft.Ink.TextInput.InPlaceDirection
The preferred direction of the in-place Input Panel relative to 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 PreferredInPlaceDirection. The tip object is an instance of TextInputPanel. An editable field where the focus is placed is represented by the TextBox control, textBox1.

textBox1.Focus()
tip.PreferredInPlaceDirection = InPlaceDirection.Top
textBox1.Focus();
tip.PreferredInPlaceDirection = InPlaceDirection.Top;

Платформы

Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

TextInputPanel Класс

TextInputPanel - члены

Microsoft.Ink.TextInput - пространство имен

InPlaceDirection