InkOverlay.AttachedControl - свойство
Обновлен: Ноябрь 2007
Gets or sets the control to which the InkOverlay object is attached.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
<BrowsableAttribute(False)> _
Public Property AttachedControl As Control
'Применение
Dim instance As InkOverlay
Dim value As Control
value = instance.AttachedControl
instance.AttachedControl = value
[BrowsableAttribute(false)]
public Control AttachedControl { get; set; }
[BrowsableAttribute(false)]
public:
property Control^ AttachedControl {
Control^ get ();
void set (Control^ value);
}
/** @property */
/** @attribute BrowsableAttribute(false) */
public Control get_AttachedControl()
/** @property */
/** @attribute BrowsableAttribute(false) */
public void set_AttachedControl(Control value)
public function get AttachedControl () : Control
public function set AttachedControl (value : Control)
Значение свойства
Тип: System.Windows.Forms.Control
The control to which the InkOverlay object is attached.
Value |
Meaning |
---|---|
nullссылка null (Nothing в Visual Basic) |
The InkOverlay object is not attached to a control. |
The control to which the InkOverlay object is attached. |
Заметки
The AttachedControl or Handle property must be set before the InkOverlay object can be enabled.
If the InkOverlay object is attached to a window handle, setting this property attaches the InkOverlay object to a control and clears the Handle property.
Примечание. |
---|
The InkOverlay must be disabled before setting this property. To disable the InkOverlay, set the Enabled property to false. You can then set this property and re-enable the object by setting the Enabled property to true. |
If you use the AttachedControl property and the Handle property in your application, you will get a security exception when you run the application in the Internet zone. This is because the Handle property is not valid in the partial trust environment of the Internet zone, so the Tablet PC operating system reverts to the AttachedControl property.
Примеры
In this example, the AttachedControl property is used to invalidate the control that is used by the InkOverlay object.
' Note: mInkOverlay was instantiated via: new InkOverlay(control)
' not via: new InkOverlay(control.Handle) - this .ctor does not set AttachedControl
mInkOverlay.AttachedControl.Invalidate()
// Note: mInkOverlay was instantiated via: new InkOverlay(control)
// not via: new InkOverlay(control.Handle) - this .ctor does not set AttachedControl
mInkOverlay.AttachedControl.Invalidate();
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
Microsoft.Ink - пространство имен