다음을 통해 공유


Stroke.GetPoints 메서드

업데이트: 2007년 11월

Stroke 개체를 구성하는 모든 Point 구조체를 반환합니다.

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

구문

‘선언
Public Function GetPoints As Point()
‘사용 방법
Dim instance As Stroke
Dim returnValue As Point()

returnValue = instance.GetPoints()
public Point[] GetPoints()
public:
array<Point>^ GetPoints()
public Point[] GetPoints()
public function GetPoints() : Point[]

반환 값

형식: array<System.Drawing.Point[]
Stroke 개체를 구성하는 Point 구조체의 배열을 반환합니다.

예제

이 예제에서는 InkOverlay의 선택한 각 Stroke 개체의 점을 사용하여 새 Stroke 개체를 만듭니다. 그런 다음 새 Stroke 개체를 XY 방향으로 200 HIMETRIC 단위만큼 이동합니다.

For Each S As Stroke In mInkOverlay.Selection
    Dim sPts() As Point = S.GetPoints()
    Dim newStroke As Stroke = S.Ink.CreateStroke(sPts)
    newStroke.Move(200, 200)
Next
foreach (Stroke S in mInkOverlay.Selection)
{
    Point[] sPts = S.GetPoints();
    Stroke newStroke = S.Ink.CreateStroke(sPts);
    newStroke.Move(200, 200);
}

플랫폼

Windows Vista

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

Stroke 클래스

Stroke 멤버

GetPoints 오버로드

Microsoft.Ink 네임스페이스

Stroke.GetPoint