Sdílet prostřednictvím


TextInputPanel.DefaultInPlaceState Property

Gets or sets the default in-place state.

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

Syntax

'Declaration
Public Property DefaultInPlaceState As InPlaceState
'Usage
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);
}
public function get DefaultInPlaceState () : InPlaceState 
public function set DefaultInPlaceState (value : InPlaceState)

Property Value

Type: Microsoft.Ink.TextInput.InPlaceState
The default in-place state.

Remarks

Applications should set this property to Expanded in order to have the Input Panel open without first showing, and requiring the user to tap the hover target.

Setting the default in-place state to HoverTarget overrides the Input Panel's heuristics for keeping the Input Panel expanded when switching between fields. This also forces the Input Panel to the collapsed or hover state on a focus change. The system default is Auto.

Examples

The following example demonstrates the use of DefaultInPlaceState. The tip object is an instance of TextInputPanel.

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

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

TextInputPanel Class

TextInputPanel Members

Microsoft.Ink.TextInput Namespace