PenInputPanel.VerticalOffset - свойство
Обновлен: Ноябрь 2007
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.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Property VerticalOffset As Integer
'Применение
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)
Значение свойства
Тип: 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. |
Заметки
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.
Примечание о безопасности. |
---|
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. |
Примеры
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
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0