InkOverlay.EraserMode - свойство
Обновлен: Ноябрь 2007
Gets or sets a value that indicates whether ink is erased by stroke or by point.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
<BrowsableAttribute(True)> _
Public Property EraserMode As InkOverlayEraserMode
'Применение
Dim instance As InkOverlay
Dim value As InkOverlayEraserMode
value = instance.EraserMode
instance.EraserMode = value
[BrowsableAttribute(true)]
public InkOverlayEraserMode EraserMode { get; set; }
[BrowsableAttribute(true)]
public:
property InkOverlayEraserMode EraserMode {
InkOverlayEraserMode get ();
void set (InkOverlayEraserMode value);
}
/** @property */
/** @attribute BrowsableAttribute(true) */
public InkOverlayEraserMode get_EraserMode()
/** @property */
/** @attribute BrowsableAttribute(true) */
public void set_EraserMode(InkOverlayEraserMode value)
public function get EraserMode () : InkOverlayEraserMode
public function set EraserMode (value : InkOverlayEraserMode)
Значение свойства
Тип: Microsoft.Ink.InkOverlayEraserMode
One of the InkOverlayEraserMode values indicates whether ink is erased by stroke or by point.
Заметки
This property applies only when the EditingMode property is set to Delete.
When erasing in InkOverlayEraserMode mode, strokes are often split into multiple smaller strokes.
Примеры
In this example, an event handler attached to two radio buttons enables the user to switch the InkOverlayEraserMode property of an InkOverlay object or an InkPicture object.
Private Sub radioButtonEraseMode_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
If DirectCast(sender, RadioButton).Name = rbEraseModeStroke.Name Then
Me.mInkObject.EraserMode = InkOverlayEraserMode.StrokeErase
Else
Me.mInkObject.EraserMode = InkOverlayEraserMode.PointErase
End If
End Sub
private void radioButtonEraseMode_Click(object sender, EventArgs e)
{
// mInkObject can be InkOverlay or InkPicture
if (((RadioButton)sender).Name == rbEraseModeStroke.Name)
{
mInkObject.EraserMode = InkOverlayEraserMode.StrokeErase;
}
else
{
mInkObject.EraserMode = InkOverlayEraserMode.PointErase;
}
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0