TextInputPanel.DefaultInPlaceState 属性

获取或设置默认就地状态。

命名空间:  Microsoft.Ink.TextInput
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public Property DefaultInPlaceState As InPlaceState
用法
Dim instance As TextInputPanel
Dim value As InPlaceState

value = instance.DefaultInPlaceState

instance.DefaultInPlaceState = value
public InPlaceState DefaultInPlaceState { get; set; }
public:
property InPlaceState DefaultInPlaceState {
    InPlaceState get ();
    void set (InPlaceState value);
}
/** @property */
public InPlaceState get_DefaultInPlaceState()
/** @property */
public  void set_DefaultInPlaceState(InPlaceState value)
public function get DefaultInPlaceState () : InPlaceState
public function set DefaultInPlaceState (value : InPlaceState)

属性值

类型:Microsoft.Ink.TextInput.InPlaceState
默认就地状态。

备注

为了使输入面板直接打开,而不是先显示并要求用户点击悬停目标,应用程序应将此属性设置为 Expanded

将默认就地状态设置为 HoverTarget 将覆盖输入面板的试探法,以在切换字段时使输入面板保持展开。这还将在焦点更改时强制输入面板折叠或成为悬停状态。系统默认值为 Auto

示例

下面的示例演示 DefaultInPlaceState 的用法。tip 对象是 TextInputPanel 的实例。

tip = New TextInputPanel()
tip.AttachedEditWindow = textBox1.Handle
tip.DefaultInPlaceState = InPlaceState.Expanded
tip = new TextInputPanel();
tip.AttachedEditWindow = textBox1.Handle;
tip.DefaultInPlaceState = InPlaceState.Expanded;

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

TextInputPanel 类

TextInputPanel 成员

Microsoft.Ink.TextInput 命名空间