TextInputPanel.SetInPlaceVisibility Method
Passes a value to determine whether to show or hide the Tablet PC Input Panel.
Namespace: Microsoft.Ink.TextInput
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
<UIPermissionAttribute(SecurityAction.Demand, Window := UIPermissionWindow.SafeTopLevelWindows)> _
<SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted := True)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Sub SetInPlaceVisibility ( _
visible As Boolean _
)
'Usage
Dim instance As TextInputPanel
Dim visible As Boolean
instance.SetInPlaceVisibility(visible)
[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public void SetInPlaceVisibility(
bool visible
)
[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public:
void SetInPlaceVisibility(
bool visible
)
public function SetInPlaceVisibility(
visible : boolean
)
Parameters
- visible
Type: System.Boolean
Remarks
The Input Panel is shown as specified by the CurrentInPlaceState.
Calling SetInPlaceVisibility with the visible parameter set to true fails if the Input Panel is already visible.
If the user has disabled in-place mode from the Input Panel options dialog, calling SetInPlaceVisibility will fail.
Ink already in the Input Panel is automatically inserted when visibility is changed.
This method does not change the value of InPlaceVisibleOnFocus. On the subsequent focus change the behavior reverts to the behavior specified by the InPlaceVisibleOnFocus property.
This method is a synchronous call. Input Panel visibility changes before the call returns.
Examples
The following example demonstrates the use of SetInPlaceVisibility. 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.SetInPlaceVisibility(True)
textBox1.Focus();
tip.SetInPlaceVisibility(true);
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