TextInputPanel.PreferredInPlaceDirection 属性

获取或设置就地输入面板相对于文本输入字段的首选方向。

命名空间:  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
就地输入面板相对于文本输入字段的首选方向。

备注

通过将 PreferredInPlaceDirection 设置为 BottomTop,应用程序可指定就地输入面板默认出现在文本输入字段的上方还是下方。PreferredInPlaceDirection 是首选项,因为当有必要将输入面板保留在屏幕上时,就地输入面板将覆盖应用程序设置的首选项。

系统默认设置为在可能时将就地输入面板定位在文本字段的下方;否则定位在上方。将 PreferredInPlaceDirection 设置为 Auto 将还原系统默认设置。

示例

下面的示例演示 PreferredInPlaceDirection 的用法。tip 对象是 TextInputPanel 的实例。焦点所在的可编辑字段是由 TextBox 控件 textBox1 表示的。

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

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

TextInputPanel 类

TextInputPanel 成员

Microsoft.Ink.TextInput 命名空间

InPlaceDirection