다음을 통해 공유


Ink.DeleteStrokes 메서드

업데이트: 2007년 11월

Ink 개체에 있는 모든 Stroke 개체를 삭제합니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Sub DeleteStrokes
‘사용 방법
Dim instance As Ink

instance.DeleteStrokes()
public void DeleteStrokes()
public:
void DeleteStrokes()
public void DeleteStrokes()
public function DeleteStrokes()

예외

예외 상황
ObjectDisposedException

Ink 개체가 삭제된 경우

설명

사용자가 실제로 잉크를 칠할 때 DeleteStrokes 메서드를 호출하면 오류가 발생할 수 있습니다.

참고

원래 컬렉션에 포함된 Stroke 개체가 Ink 개체에서 삭제되면 Ink.Strokes 속성을 가리키는 Strokes 컬렉션이 무효화됩니다. 예를 들어 Ink 개체의 Strokes 속성인 theStrokes를 기반으로 하는 theStrokesToo라는 Strokes 컬렉션이 있고, theStrokes에 대해 DeleteStrokes 메서드를 호출하는 경우 theStrokesToo가 무효화됩니다.

Stroke 개체를 한 번에 하나씩만 삭제하려면 DeleteStroke 메서드를 호출합니다.

예제

이 C# 예제 함수에서는 Ink 개체의 모든 Stroke 개체를 삭제하고 InkCollector 개체인 theInkCollector가 연결되어 있는 thePanel 패널을 다시 그립니다.

theInkCollector.Ink.DeleteStrokes();
thePanel.Refresh();

이 Microsoft Visual Basic.NET 예제 함수에서는 Ink 개체의 모든 Stroke 개체를 삭제하고 InkCollector 개체인 theInkCollector가 연결되어 있는 thePanel 패널을 다시 그립니다.

theInkCollector.Ink.DeleteStrokes()
thePanel.Refresh()

플랫폼

Windows Vista

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

Ink 클래스

Ink 멤버

DeleteStrokes 오버로드

Microsoft.Ink 네임스페이스

Strokes

Ink.DeleteStroke

Ink.CreateStroke

Ink.CreateStrokes