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


TextInputPanel.SetInPlaceVisibility - метод

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

Passes a value to determine whether to show or hide the Tablet PC Input Panel.

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

Синтаксис

'Декларация
<UIPermissionAttribute(SecurityAction.Demand, Window := UIPermissionWindow.SafeTopLevelWindows)> _
<SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted := True)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Sub SetInPlaceVisibility ( _
    visible As Boolean _
)
'Применение
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
)
/** @attribute UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows) */
/** @attribute SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true) */
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public void SetInPlaceVisibility(
    boolean visible
)
public function SetInPlaceVisibility(
    visible : boolean
)

Параметры

Заметки

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.

Примеры

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);

Платформы

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 - пространство имен