Children Property

InkCanvas.Children Property

 

Retrieves child elements of the InkCanvas.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public ReadOnly Property Children As UIElementCollection

Property Value

Type: System.Windows.Controls.UIElementCollection

A collection of child elements located on the InkCanvas.

<object>
  OneOrMoreUIElements
</object>

OneOrMoreUIElements

One or more UIElement objects.

The following example adds a TextBlock to an InkCanvas.

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft