Tablet.MaximumInputRectangle (Propiedad)
Actualización: noviembre 2007
Obtiene el rectángulo de entrada máximo, en coordenadas de dispositivo de Tablet PC, que admite el objeto Tablet.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public ReadOnly Property MaximumInputRectangle As Rectangle
'Uso
Dim instance As Tablet
Dim value As Rectangle
value = instance.MaximumInputRectangle
public Rectangle MaximumInputRectangle { get; }
public:
property Rectangle MaximumInputRectangle {
Rectangle get ();
}
/** @property */
public Rectangle get_MaximumInputRectangle()
public function get MaximumInputRectangle () : Rectangle
Valor de propiedad
Tipo: System.Drawing.Rectangle
Rectángulo de entrada máximo, en coordenadas de dispositivo de Tablet PC, que admite el objeto Tablet.
Comentarios
El rectángulo devuelto por la propiedad MaximumInputRectangle especifica el espacio máximo permitido en el que se puede dibujar entrada manuscrita.
Nota
Esta función puede introducirse de nuevo si se llama en determinados controladores de mensajes, lo cual causa resultados inesperados. Asegúrese de evitar que se produzca una llamada reentrante cuando controle alguno de los mensajes siguientes: WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT; WM_SYSCOMMAND si wParam se establece en SC_HOTKEY o SC_TASKLIST y WM_SYSKEYDOWN (al procesar las combinaciones de teclas Alt-Tab o Alt-Esc). Este problema se produce con las aplicaciones del modelo de subprocesamiento controlado simple.
Ejemplos
En este ejemplo se informa sobre el identificador de Plug and Play, las capacidades de hardware y el rectángulo de entrada máximo del objeto Tablet predeterminado de la colección Tablets.
Public Function Report_Hardware_DefaultTablet() As String
Dim SB As StringBuilder = New StringBuilder(1024)
Dim defTablet As Tablet = New Tablets().DefaultTablet
' report on the hardware capabilities of the default tablet
SB.AppendLine("Hardware capabilities of the default tablet: " + defTablet.Name)
SB.AppendLine("PlugAndPlayId: " + defTablet.PlugAndPlayId)
If (defTablet.HardwareCapabilities And TabletHardwareCapabilities.CursorMustTouch) <> 0 Then
SB.AppendLine("CursorMustTouch: YES")
Else
SB.AppendLine("CursorMustTouch: NO")
End If
If (defTablet.HardwareCapabilities And TabletHardwareCapabilities.CursorsHavePhysicalIds) <> 0 Then
SB.AppendLine("CursorsHavePhysicalIds: YES")
Else
SB.AppendLine("CursorsHavePhysicalIds: NO")
End If
If (defTablet.HardwareCapabilities And TabletHardwareCapabilities.HardProximity) <> 0 Then
SB.AppendLine("HardProximity:: YES")
Else
SB.AppendLine("HardProximity:: NO")
End If
If (defTablet.HardwareCapabilities And TabletHardwareCapabilities.Integrated) <> 0 Then
SB.AppendLine("Integrated: YES")
Else
SB.AppendLine("Integrated: NO")
End If
SB.AppendLine("MaximumInputRectangle " + defTablet.MaximumInputRectangle.ToString())
Return SB.ToString()
End Function
public string Report_Hardware_DefaultTablet()
{
StringBuilder SB = new StringBuilder(1024);
Tablet defTablet = new Tablets().DefaultTablet;
// report on the hardware capabilities of the default tablet
SB.AppendLine("Hardware capabilities of the default tablet: " + defTablet.Name);
SB.AppendLine("PlugAndPlayId: " + defTablet.PlugAndPlayId);
SB.AppendLine("CursorMustTouch: " +
(((defTablet.HardwareCapabilities & TabletHardwareCapabilities.CursorMustTouch) != 0) ? "YES" : "NO"));
SB.AppendLine("CursorsHavePhysicalIds: " +
(((defTablet.HardwareCapabilities & TabletHardwareCapabilities.CursorsHavePhysicalIds) != 0) ? "YES" : "NO"));
SB.AppendLine("HardProximity: " +
(((defTablet.HardwareCapabilities & TabletHardwareCapabilities.HardProximity) != 0) ? "YES" : "NO"));
SB.AppendLine("Integrated: " +
(((defTablet.HardwareCapabilities & TabletHardwareCapabilities.Integrated) != 0) ? "YES" : "NO"));
SB.AppendLine("MaximumInputRectangle " + defTablet.MaximumInputRectangle.ToString());
return SB.ToString();
}
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0