Langue

InkCanvas.Children Propriété

Définition

Récupère les é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é

Collection d’éléments enfants situés 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 de l’élément de propriété XAML

<object>
  OneOrMoreUIElements
</object>

Valeurs XAML

OneOrMoreUIElements Un ou plusieurs UIElement objets.

S’applique à