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);
}
public function get VerticalOffset () : int
public function set VerticalOffset (value : int)
Property Value
Type: System.Int32
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 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. |
Examples
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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0