Compartir a través de


PenInputPanel.VerticalOffset Property

Deprecated. Gets or sets the offset between the closest horizontal edge of the pen input panel and the closest horizontal edge of the control to which it is attached. PenInputPanel has been replaced by Microsoft.Ink.TextInput.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Property VerticalOffset As Integer
'Usage
Dim instance As PenInputPanel
Dim value As Integer

value = instance.VerticalOffset

instance.VerticalOffset = value
public int VerticalOffset { get; set; }
public:
property int VerticalOffset {
    int get ();
    void set (int value);
}
/** @property */
public int get_VerticalOffset ()

/** @property */
public void set_VerticalOffset (int value)
public function get VerticalOffset () : int

public function set VerticalOffset (value : int)
Not applicable.

Property Value

The offset between the closest horizontal edge of the pen input panel and the closest horizontal edge of the control to which it is attached.

Value

Meaning

6

The number of pixels equal to 1/16 of an inch at 96 dots per inch (dpi).

7

The number of pixels equal to 1/16 of an inch at 120 dpi.

8

The number of pixels equal to 1/16 of an inch at 133 dpi.

Remarks

The default value is the equivalent of 1/16 of an inch, in pixels, and is dependent on screen resolution settings. A value of 0 (zero) attaches the PenInputPanel object directly to the bottom of the control. A value of -1 places the pen input panel 1 pixel above the control.

If the new position of the PenInputPanel object causes the pen input panel to appear outside the boundary of the screen working area, the panel is shifted toward the center of the working area so that the edges of the panel are adjacent to the nearest edges of the screen.

Security noteSecurity Note:

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.

Example

This C# example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit. It then sets the vertical (y-axis) position of the PenInputPanel object to 100 pixels from the nearest horizontal edge of theInkEdit, by setting the VerticalOffset property.

[C#]

/// Declare, create, and attach a new PenInputPanel to an InkEdit control
PenInputPanel thePenInputPanel = new PenInputPanel(theInkEdit);

// Set the vertical position of the PenInputPanel object
thePenInputPanel.VerticalOffset = 100;

This Microsoft® Visual Basic® .NET example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit. It then sets the vertical (y-axis) position of the PenInputPanel object to 100 pixels from the nearest horizontal edge of theInkEdit, by setting the VerticalOffset property.

[Visual Basic]

' Declare, create, and attach a new PenInputPanel to an InkEdit control
Dim thePenInputPanel As New PenInputPanel(theInkEdit)

' Set the vertical position of the PenInputPanel object
thePenInputPanel.VerticalOffset = 100

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

PenInputPanel Class
PenInputPanel Members
Microsoft.Ink Namespace
PenInputPanel.HorizontalOffset