LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
Children Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnGroupObject Class : Children Property



The Children Property supports WPF/Silverlight.

The Children Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets the collection of annotation objects (of various classes derived from AnnObject) contained in this AnnGroupObject object. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
Public ReadOnly Property Children As AnnObjectCollection
Visual Basic (Usage)Copy Code
Dim instance As AnnGroupObject
Dim value As AnnObjectCollection
 
value = instance.Children
C# 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]
public AnnObjectCollection Children {get;}
C++/CLI 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]
public:
property AnnObjectCollection^ Children {
   AnnObjectCollection^ get();
}

Property Value

The collection of AnnObject objects assigned to this AnnGroupObject.

Example

For XAML example, refer to AnnGroupObject.

For C#/VB examples, refer to AnnGroupObject.

Remarks

(Read only) The Children property is a zero-based indexed collection used to hold all the AnnObject objects assigned to this AnnGroupObject. Since the property is read-only, it cannot be assigned a collection of objects directly. Objects can be added or removed by using the methods inherited from the AnnObjectCollection class. Use the System.Windows.Controls.UIElementCollection.Add(System.Windows.UIElement) method to add individual objects and the System.Windows.Controls.UIElementCollection.Remove(System.Windows.UIElement) method to remove an object. Call the System.Windows.Controls.UIElementCollection.Clear method to remove all the objects from the collection.

For more information about grouping and ungrouping, refer to Grouping and Ungrouping WPF Annotation Objects.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Children requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.