PenInputPanel.Busy - свойство
Обновлен: Ноябрь 2007
Deprecated. Gets a Boolean value that indicates whether the PenInputPanel object is currently processing ink. PenInputPanel has been replaced by Microsoft.Ink.TextInput.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property Busy As Boolean
'Применение
Dim instance As PenInputPanel
Dim value As Boolean
value = instance.Busy
public bool Busy { get; }
public:
property bool Busy {
bool get ();
}
/** @property */
public boolean get_Busy()
public function get Busy () : boolean
Значение свойства
Тип: System.Boolean
Whether the the PenInputPanel object is currently processing ink.
Value |
Meaning |
---|---|
true |
The PenInputPanel object is currently processing ink. |
false |
The PenInputPanel object is not currently processing ink. |
Заметки
![]() |
---|
If using under partial trust, this property requires SecurityPermissionFlag.AllFlags permission, in addition to the permissions required by PenInputPanel. See Security and Trust for more information. |
Примеры
This C# example creates an event handler for a button click event, theButton_Click. Before processing the action from the button click, the handler checks to see if the PenInputPanel object, thePenInputPanel, is processing ink. If so, the event handler calls the CommitPendingInput method to force the PenInputPanel object to complete processing ink before proceeding.
[C#]
//...
private void theButton_Click(object sender, System.EventArgs e)
{
// If the PenInputPanel is still processing ink...
if (thePenInputPanel.Busy)
{
// Force the PenInputPanel to commit user input
thePenInputPanel.CommitPendingInput();
}
// Process the action from the button click
//...
}
This Microsoft® Visual Basic® .NET example creates an event handler for a button
click event, theButton_Click. Before processing the action from the button click, the handler checks to see if the PenInputPanel object, thePenInputPanel, is processing ink. If so, the event handler calls the CommitPendingInput method to force the PenInputPanel object to complete processing ink before proceeding.
[Visual Basic]
'...
Private Sub theButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles theButton.Click
' If the PenInputPanel is still processing ink...
If thePenInputPanel.Busy Then
' Force the PenInputPanel to commit user input
thePenInputPanel.CommitPendingInput()
End If
' Process the action from the button click
'...
End Sub
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0