InkCanvas.Select 메서드

정의

잉크 Stroke 개체 및/또는 FrameworkElement 개체의 집합을 선택합니다.

오버로드

Select(IEnumerable<UIElement>)

UIElement 개체 집합을 선택합니다.

Select(StrokeCollection)

잉크 Stroke 개체 집합을 선택합니다.

Select(StrokeCollection, IEnumerable<UIElement>)

StrokeUIElement 개체를 조합하여 선택합니다.

설명

InkCanvas 사용자 스타일러스 입력에 대한 응답으로 만들어진 개체와 FrameworkElement 개체와 같은 Image 개체를 Button 포함 Stroke 할 수 있습니다.

선택한 스트로크는 인식 및 조작의 용이성을 위해 주위에 표시기와 함께 표시됩니다. FrameworkElement 를 선택하면 개체가 다르게 표시되지 않습니다.

Select(IEnumerable<UIElement>)

UIElement 개체 집합을 선택합니다.

public:
 void Select(System::Collections::Generic::IEnumerable<System::Windows::UIElement ^> ^ selectedElements);
public void Select (System.Collections.Generic.IEnumerable<System.Windows.UIElement> selectedElements);
member this.Select : seq<System.Windows.UIElement> -> unit
Public Sub Select (selectedElements As IEnumerable(Of UIElement))

매개 변수

selectedElements
IEnumerable<UIElement>

선택할 UIElement 개체의 컬렉션입니다.

예제

다음 예제에서는 모든 스트로크와 두 요소를 InkCanvas선택합니다. 이 예제에서는 TextBox 호출 및 Button 호출 textbox1 button1 이 있고 두 컨트롤이 모두 자InkCanvas식 요소라고 가정합니다.

inkCanvas1.Select(inkCanvas1.Strokes, new UIElement[] { textbox1, button1 });
inkCanvas1.Select(inkCanvas1.Strokes, New UIElement() {textbox1, button1})

설명

InkCanvas 사용자 스타일러스 입력 및 UIElement 개체(예: Image Button 및 개체)에 대한 응답으로 만들어지는 개체를 포함 Stroke 할 수 있습니다.

선택한 스트로크는 인식 및 조작의 용이성을 위해 주위에 표시기와 함께 표시됩니다. UIElement 를 선택하면 개체가 다르게 표시되지 않습니다. in UIElement selectedElements 이 Children 컬렉션 Select 에 없으면 .를 무시합니다 UIElement.

적용 대상

Select(StrokeCollection)

잉크 Stroke 개체 집합을 선택합니다.

public:
 void Select(System::Windows::Ink::StrokeCollection ^ selectedStrokes);
public void Select (System.Windows.Ink.StrokeCollection selectedStrokes);
member this.Select : System.Windows.Ink.StrokeCollection -> unit
Public Sub Select (selectedStrokes As StrokeCollection)

매개 변수

selectedStrokes
StrokeCollection

선택할 Stroke 개체의 컬렉션입니다.

예외

selectedStrokes의 스트로크 중 하나 이상이 Strokes 속성에 없는 경우

예제

다음 예제에서는 모든 스트로크와 두 요소를 InkCanvas선택합니다. 이 예제에서는 TextBox 호출 및 Button 호출 textbox1 button1 이 있고 두 컨트롤이 모두 자InkCanvas식 요소라고 가정합니다.

inkCanvas1.Select(inkCanvas1.Strokes, new UIElement[] { textbox1, button1 });
inkCanvas1.Select(inkCanvas1.Strokes, New UIElement() {textbox1, button1})

설명

InkCanvas 사용자 스타일러스 입력에 대한 응답으로 만들어진 개체와 FrameworkElement 개체와 같은 Image 개체를 Button 포함 Stroke 할 수 있습니다.

선택한 스트로크는 인식 및 조작의 용이성을 위해 주위에 표시기와 함께 표시됩니다. FrameworkElement 를 선택하면 개체가 다르게 표시되지 않습니다.

적용 대상

Select(StrokeCollection, IEnumerable<UIElement>)

StrokeUIElement 개체를 조합하여 선택합니다.

public:
 void Select(System::Windows::Ink::StrokeCollection ^ selectedStrokes, System::Collections::Generic::IEnumerable<System::Windows::UIElement ^> ^ selectedElements);
public void Select (System.Windows.Ink.StrokeCollection selectedStrokes, System.Collections.Generic.IEnumerable<System.Windows.UIElement> selectedElements);
member this.Select : System.Windows.Ink.StrokeCollection * seq<System.Windows.UIElement> -> unit
Public Sub Select (selectedStrokes As StrokeCollection, selectedElements As IEnumerable(Of UIElement))

매개 변수

selectedStrokes
StrokeCollection

선택할 Stroke 개체의 컬렉션입니다.

selectedElements
IEnumerable<UIElement>

선택할 UIElement 개체의 컬렉션입니다.

예외

selectedStrokes의 스트로크 중 하나 이상이 Strokes 속성에 포함되어 있지 않은 경우

예제

다음 예제에서는 모든 스트로크와 두 요소를 InkCanvas선택합니다. 이 예제에서는 TextBox 호출 및 Button 호출 textbox1 button1 이 있으며 두 컨트롤이 모두 해당 컨트롤의 InkCanvas자식 요소라고 가정합니다.

inkCanvas1.Select(inkCanvas1.Strokes, new UIElement[] { textbox1, button1 });
inkCanvas1.Select(inkCanvas1.Strokes, New UIElement() {textbox1, button1})

설명

InkCanvas 사용자 스타일러스 입력 및 UIElement 개체(예: Image Button 및 개체)에 대한 응답으로 만들어지는 개체를 포함 Stroke 할 수 있습니다.

선택한 스트로크는 인식 및 조작의 용이성을 위해 주위에 표시기와 함께 표시됩니다. UIElement 를 선택하면 개체가 다르게 표시되지 않습니다. in UIElement selectedElements 이 Children 컬렉션 Select 에 없으면 .를 무시합니다 UIElement.

적용 대상