InkCanvas.Children Propriété

Définition

Récupère des éléments enfants du InkCanvas.

public:
 property System::Windows::Controls::UIElementCollection ^ Children { System::Windows::Controls::UIElementCollection ^ get(); };
public System.Windows.Controls.UIElementCollection Children { get; }
member this.Children : System.Windows.Controls.UIElementCollection
Public ReadOnly Property Children As UIElementCollection

Valeur de propriété

Une collection d'éléments enfants localisée sur le InkCanvas.

Exemples

L’exemple suivant ajoute un TextBlock à un InkCanvas.

textBlock1 = new TextBlock();
textBlock1.Text = "TextBlock content";
Canvas.SetTop(textBlock1, 100);
Canvas.SetLeft(textBlock1, 100);
inkCanvas1.Children.Add(textBlock1);
textBlock1 = New TextBlock()
textBlock1.Text = "TextBlock content"
Canvas.SetTop(textBlock1, 100)
Canvas.SetLeft(textBlock1, 100)
inkCanvas1.Children.Add(textBlock1)

Remarques

Utilisation des éléments de propriété XAML

<object>  
  OneOrMoreUIElements  
</object>  

Valeurs XAML

OneOrMoreUIElements
Un ou plusieurs UIElement objets.

S’applique à