Stylus.Inverted-Eigenschaft
Ruft einen Wert ab, der angibt, ob der Tablettstift umgedreht ist oder nicht.
Namespace: Microsoft.StylusInput
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property Inverted As Boolean
'Usage
Dim instance As Stylus
Dim value As Boolean
value = instance.Inverted
public bool Inverted { get; }
public:
property bool Inverted {
bool get ();
}
/** @property */
public boolean get_Inverted()
public function get Inverted () : boolean
Eigenschaftenwert
Typ: System.Boolean
true , wenn der Tablettstift umgedreht ist, andernfalls false.
Beispiele
Dieses Microsoft Visual C# .NET-Beispiel ist ein Ausschnitt aus der Hilfsmethode StylusDataToString eines Formulars. Die Hilfsmethode verwendet ein Stylus-Objekt und gibt eine Zeichenfolge mit Informationen über den Tablettstift und dessen Tasten zurück.
using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;
// ...
// Declare the RealTimeStylus objects, the GestureRecognizer plugin,
// and the DynamicRenderer plug-in.
private Microsoft.StylusInput.RealTimeStylus thePrimaryRealTimeStylus = null;
private Microsoft.StylusInput.RealTimeStylus theSecondaryRealTimeStylus = null;
private Microsoft.StylusInput.GestureRecognizer theGestureRecognizer = null;
private Microsoft.StylusInput.DynamicRenderer theDynamicRenderer = null;
// ...
// Returns information about a given stylus.
private string StylusDataToString(Stylus theStylus)
{
System.Text.StringBuilder result = new System.Text.StringBuilder();
// Add information about the tablet pen.
result.Append(
string.Format(" Name = {0}, Id = {1}, ContextId = {2}, Inverted = {3}, Button Count = {4}."
+ Environment.NewLine, theStylus.Name, theStylus.Id,
theStylus.TabletContextId, theStylus.Inverted, theStylus.Buttons.Count));
// Add information about each of the tabet pen's buttons.
for (int i=0; i<theStylus.Buttons.Count; i++)
{
result.Append(
string.Format(" Button {0}: Name = {1}, Id = {2}" + Environment.NewLine,
i, theStylus.Buttons.GetName(i), theStylus.Buttons.GetId(i)));
}
return result.ToString();
}
Plattformen
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Versionsinformationen
.NET Framework
Unterstützt in: 3.0
Siehe auch
Referenz
Microsoft.StylusInput-Namespace
Microsoft.StylusInput.PluginData.StylusButtonDataBase