다음을 통해 공유


Strokes.Clear 메서드

업데이트: 2007년 11월

Strokes 컬렉션에서 Stroke 개체를 모두 지웁니다.

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

구문

‘선언
Public Sub Clear
‘사용 방법
Dim instance As Strokes

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

설명

이 메서드는 포함하는 Ink 개체에서 Strokes 컬렉션을 삭제하지 않습니다. 스트로크를 영구적으로 삭제하려면 Ink.DeleteStroke 또는 Ink.DeleteStrokes 메서드를 사용합니다.

예제

이 C# 예제에서는 CustomStrokes 컬렉션의 첫 번째 Strokes 컬렉션에 들어 있는 Stroke 개체를 모두 제거합니다. CustomStrokes 컬렉션은 InkOverlay인 theInkOverlay에 연결된 Ink 개체에 속합니다.

theInkOverlay.Ink.CustomStrokes[0].Clear();

이 Microsoft Visual Basic.NET 예제에서는 CustomStrokes 컬렉션의 첫 번째 Strokes 컬렉션에 들어 있는 Stroke 개체를 모두 제거합니다. CustomStrokes 컬렉션은 InkOverlay인 theInkOverlay에 연결된 Ink 개체에 속합니다.

theInkOverlay.Ink.CustomStrokes(0).Clear()

플랫폼

Windows Vista

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

Strokes 클래스

Strokes 멤버

Microsoft.Ink 네임스페이스

CustomStrokes

Ink

InkCollector

Stroke