StylusButtonState Enumeração
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Representa o estado de um StylusButton.
public enum class StylusButtonState
public enum StylusButtonState
type StylusButtonState =
Public Enum StylusButtonState
- Herança
Campos
| Name | Valor | Description |
|---|---|---|
| Up | 0 | O botão está para cima. |
| Down | 1 | O botão é pressionado. |
Exemplos
O exemplo seguinte demonstra como determinar o estado de um StylusButton.
// Get the state of the StylusButton
switch (myStylusButton.StylusButtonState)
{
case StylusButtonState.Down:
textbox1.AppendText("StylusButton.State: Down\n");
break;
default: // StylusButtonState.Up
textbox1.AppendText("StylusButton.State: Up\n");
break;
}
' Get the state of the StylusButton
Select Case myStylusButton.StylusButtonState
Case StylusButtonState.Down
textbox1.AppendText("StylusButton.State: Down" + vbCrLf)
Case Else ' StylusButtonState.Up
textbox1.AppendText("StylusButton.State: Up" + vbCrLf)
End Select